CockroachDB supports the PostgreSQL wire protocol, so most available PostgreSQL client drivers should work 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.Tip:
For code samples using these drivers, see the Build an App with CockroachDB tutorials.App Language | Recommended Driver |
---|---|
Go | pq |
Python | psycopg2 |
Ruby | pg |
Java | jdbc |
Node.js | pg |
C | libpq |
C++ | libpqxx |
C# (.NET) | Npgsql |
Clojure | java.jdbc |
PHP | php-pgsql |
Rust | postgres |