Drivers and ORMs for YugabyteDB

Drivers and ORMs

Connect applications with your database

Applications connect to and interact with YugabyteDB using API client libraries (also known as client drivers). Because the YugabyteDB YSQL API is PostgreSQL-compatible, and the YCQL API has roots in the Apache Cassandra CQL, YugabyteDB supports many third-party drivers.

In addition to the compatible upstream PostgreSQL drivers, YugabyteDB also supports smart drivers, which extend the PostgreSQL drivers to enable client applications to connect to YugabyteDB clusters without the need for external load balancers.

Choose your language

Supported libraries

The following libraries are officially supported by YugabyteDB.

Version Support Level Example apps
Drivers
YugabyteDB JDBC Smart Driver
[Recommended]
42.3.5-yb-3 Full CRUD
PostgreSQL JDBC Driver 42.3.4 Full CRUD
Vert.x Pg Client 4.3.2 Full CRUD
YugabyteDB Java Driver for YCQL 3.10.3-yb-2 Full CRUD
YugabyteDB Java Driver for YCQL 4.15.0-yb-1 Full CRUD
ORMs
Ebean 13.23.0 Full CRUD
Hibernate 5.4.19 Full CRUD
Spring Data YugabyteDB 2.3.0 Full CRUD
Spring Data JPA 2.6.3 Full CRUD
MyBatis 3.5.9 Full CRUD
Version Support Level Example apps
Drivers
YugabyteDB PGX Smart Driver
[Recommended]
v4 Full CRUD
PGX Driver v4 Full CRUD
PQ Driver v1.10.2 Full CRUD
YugabyteDB Go Driver for YCQL 3.16.3 Full CRUD
ORMs
GORM 1.9.16 Full CRUD
PG 10 Full CRUD
Version Support Level Example apps
Drivers
YugabyteDB Psycopg2 Smart Driver
[Recommended]
2.9.3 Full CRUD
PostgreSQL Psycopg2 Driver 2.9.3 Full CRUD
aiopg 1.4 Full Hello World
YugabyteDB Python Driver for YCQL 3.25.0 Full CRUD
ORMs
Django 2.2 or later Full CRUD
SQLAlchemy 2.0 Full CRUD
Version Support Level Example apps
Drivers
YugabyteDB node-postgres Smart Driver
[Recommended]
8.7.3-yb-1 Full CRUD
PostgreSQL node-postgres Driver 8.7.3 Full CRUD
YugabyteDB Node.js Driver for YCQL 4.0.0 Full CRUD
ORMs
Sequelize 6.6.5 Full CRUD
Prisma 3.14 Full CRUD
Driver Version Support Level Example apps
libpq C Driver 5.11 Full CRUD
Driver Version Support Level Example apps
libpqxx C++ Driver Full CRUD
YugabyteDB C++ Driver for YCQL 2.9.0-yb-10 Full CRUD
Version Support Level Example apps
Drivers
YugabyteDB C# Smart Driver for YSQL 8.0.0-yb-1-beta Full CRUD
PostgreSQL Npgsql Driver 6.0.3 Full CRUD
YugabyteDB C# Driver for YCQL 3.6.0 Full CRUD
ORM
Entity Framework 6.0.2 Full CRUD
Version Support Level Example apps
Drivers
Pg Gem Driver 1.5.4 Full CRUD
YugabyteDB Ruby Driver for YCQL 3.2.3.2 Full CRUD
ORM
Active Record 7.0.4 Full CRUD
ORM Version Support Level Example apps
Driver
Rust-postgres Driver v0.19.7-yb-1-beta
v0.7.10-yb-1-beta
Full CRUD
ORM
Diesel 1.42 Full CRUD
Version Support Level Example apps
Driver
php-pgsql Driver Full CRUD
ORM
Laravel 8.40 Full CRUD
Driver Version Support Level Example apps
YugabyteDB Java Driver for YCQL 3.10.3-yb-2 Full CRUD

Read more