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 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 |
当前内容版权归 cockroachlabs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 cockroachlabs.com .