CockroachDB supports the PostgreSQL wire protocol, so you can use any available PostgreSQL client drivers. We’ve tested and can recommend the following drivers.

  • For code samples using these drivers, see Build a Test App.
  • If you have issues with these, or want to share feedback on other drivers, please get in touch.
Language Recommended Driver
Go pq
Python psycopg2
Ruby pg
Java jdbc
Node.js pg
C libpq
C++ libpqxx
Clojure java.jdbc
PHP php-pgsql
Rust postgres


Yes No