Client Drivers

Warning:
CockroachDB v19.1 is no longer supported as of October 30, 2020. For more details, refer to the Release Support Policy.

CockroachDB supports the PostgreSQL wire protocol, so most available PostgreSQL client drivers should work with CockroachDB.

Tip:

For code samples using these drivers, see Build an App with CockroachDB.

Note:

This page features drivers that we have tested enough to claim beta-level support. This means that applications using advanced or obscure features of a driver may encounter incompatibilities. If you encounter problems, please open an issue with details to help us make progress toward full support.

App Language Driver ORM
Go pq GORM
Python psycopg2 SQLAlchemy
Ruby pg ActiveRecord
Java JDBC Hibernate
Node.js pg Sequelize
C libpq No ORMs tested
C++ libpqxx No ORMs tested
C# (.NET) Npgsql No ORMs tested
Clojure java.jdbc No ORMs tested
PHP php-pgsql No ORMs tested
Rust postgres No ORMs tested
TypeScript No drivers tested TypeORM

See also


Yes No