Install Client Drivers

2020-02-16

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

{{site.data.alerts.callout_info}}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.{{site.data.alerts.end}}

{{site.data.alerts.callout_success}}For code samples using these drivers, see the Build an App with CockroachDB tutorials.{{site.data.alerts.end}}

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