Applications may encounter incompatibilities when using advanced or obscure features of a driver or ORM with partial support. If you encounter problems, please open an issue with details.
JavaScript/TypeScript
Drivers
pg (node-postgres)
Support level: Full The Node.js pg driver provides a simple interface for PostgreSQL-compatible databases.ORM Frameworks
Sequelize
Support level: Full Sequelize is a promise-based Node.js ORM that works with CockroachDB via a special adapter.sequelize-cockroachdb package to account for differences between CockroachDB and PostgreSQL.
Prisma
Support level: Full Prisma is a modern TypeScript-first ORM with excellent CockroachDB support.TypeORM
Support level: Fullcockroachdb database type in your configuration.
Knex.js
Support level: FullPython
Drivers
psycopg3
Support level: Full The latest version of the popular PostgreSQL adapter for Python.psycopg2
Support level: Full The traditional PostgreSQL adapter for Python.psycopg2-binary.
ORM Frameworks
SQLAlchemy
Support level: Full SQLAlchemy is the Python SQL toolkit and ORM. Use with the CockroachDB dialect for best results.Django
Support level: Full CockroachDB supports Django versions 3.1+.The major version of
django-cockroachdb must correspond to the major version of django. The minor release numbers do not need to match.Go
Drivers
pgx
Support level: Full The pgx driver is a high-performance PostgreSQL driver for Go.pq
Support level: FullORM Frameworks
GORM
Support level: Full GORM is a popular ORM library for Go.Java
CockroachDB requires Java 8 or higher. For production deployments, use TLS certificates for secure connections.
Drivers
JDBC
Support level: Full Download and set up the Java JDBC driver from the official PostgreSQL JDBC documentation.ORM Frameworks
Hibernate
Support level: Full Hibernate versions 5.4.19 and later support the Hibernate CockroachDB dialect.jOOQ
Support level: Full jOOQ provides type-safe SQL queries for Java applications. Use Gradle or Maven for dependency management.Ruby
Drivers
pg
Support level: FullORM Frameworks
Active Record
Support level: FullThe version of
activerecord-cockroachdb-adapter must match your Active Record major version (e.g., 6.0.x adapter for Active Record 6.0.x).C# / .NET
Drivers
Npgsql
Support level: FullRust
Drivers
rust-postgres
Support level: PartialCargo.toml
Next Steps
After installing a client driver:Connect to Database
Learn how to configure connection strings and establish connections
Use ORMs
Explore ORM frameworks and best practices
View Examples
Browse complete example applications for your language
Best Practices
Follow recommended patterns for production applications