Skip to main content
The examples in this section show you how to build simple applications using CockroachDB. Click the links in the tables below to see simple but complete example applications for each supported language and library combination. If you are looking to do a specific task such as connect to the database, insert data, or run multi-statement transactions, see this list of tasks.
Applications may encounter incompatibilities when using advanced or obscure features of a driver or ORM with partial support. If you encounter problems, please .Note that tools with have been tested or developed by the CockroachDB community, but are not officially supported by Cockroach Labs. If you encounter problems with using these tools, please contact the maintainer of the tool with details.

JavaScript/TypeScript

Driver/ORM FrameworkSupport levelExample apps
node-postgresFull
SequelizeFull
Knex.jsFull
PrismaFull

TypeORMFull

Python

Driver/ORM FrameworkSupport levelExample apps
psycopg2Full
psycopg3Full
asyncpgPartial
SQLAlchemyFull
DjangoFull

Go

Driver/ORM FrameworkSupport levelExample apps
pgxFull
GORMFull
pqFull
upper/dbFull

Java

Driver/ORM FrameworkSupport levelExample apps
JDBCFull

HibernateFull
jOOQFull

Ruby

Driver/ORM FrameworkSupport levelExample apps
pgFull
Active RecordFull

C#

Driver/ORM FrameworkSupport levelExample apps
NpgsqlFull

Rust

Driver/ORM FrameworkSupport levelExample apps
Rust-PostgresPartial

See also

Reference information:
Specific tasks: