Install Client Drivers

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 LanguageRecommended Driver
Gopq
Pythonpsycopg2
Rubypg
Javajdbc
Node.jspg
Clibpq
C++libpqxx
C# (.NET)Npgsql
Clojurejava.jdbc
PHPphp-pgsql
Rustpostgres

Was this page helpful?
YesNo