Skip to content

Learn how to connect to CockroachDB Serverless using different languages and tools

Notifications You must be signed in to change notification settings

cockroachlabs/connect-to-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Connect to CockroachDB Serverless

CockroachDB Serverless provides developers with a resilient relational database that can easily scale to meet the requirements of the most demanding applications. Developers can instantly spin up a CockroachDB Serverless cluster and only pay for what they use.

To create a CockroachDB Serverless cluster, follow the Quick Start Guide in the official CockroachDB Serverless documentation.

This repository contains examples of how to connect to CockroachDB Serverless using a wide-range of languages, drivers, ORMs and frameworks.

JavaScript / TypeScript

node-postgres

From the home page:

Non-blocking PostgeSQL client for Node.js. Pure JavaScript and optional native libpq bindings.

JavaScript sample code for node-postgres

TypeScript sample code for node-postgres

Github repository: https://github.com/brianc/node-postgres

knex

From the home page:

A batteries-included, multi-dialect (PostgreSQL, MySQL, CockroachDB, MSSQL, SQLite3, Oracle (including Oracle Wallet Authentication)) query builder for Node.js.

JavaScript sample code for knex

TypeScript sample code for knex

Github repository: https://github.com/knex/knex

sequelize

From the home page:

Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, DB2 and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more.

JavaScript sample code for sequelize

TypeScript sample code for sequelize

Github repository: https://github.com/sequelize/sequelize

express

From the home page:

Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

JavaScript sample code for express

TypeScript sample code for express

Github repository: https://github.com/expressjs/express

koa

From the home page:

Expressive HTTP middleware framework for node.js to make web applications and APIs more enjoyable to write. Koa's middleware stack flows in a stack-like manner, allowing you to perform actions downstream then filter and manipulate the response upstream.

JavaScript sample code for koa

TypeScript sample code for koa

Github repository: https://github.com/koajs/koa

Coming Soon

Code samples for Java, Python, Go, Ruby, C#/.NET, C++, Clojure, PHP and Rust.

About

Learn how to connect to CockroachDB Serverless using different languages and tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published