Preview of a new ADBC driver for Apache Cassandra¶
An alpha release of a new ADBC driver for Apache Cassandra is available through dbc . Install version 0.1.0-alpha.1 with:
$ dbc install --pre cassandra
The driver supports query execution, bind parameters, bulk ingestion (create, append, create-or-append, and replace modes), table schema discovery, and prepared statements. It has been tested with Apache Cassandra 5.0 and DataStax Enterprise 6.9. Documentation can be found at adbc-drivers.org. This is a preview release, and more features are actively being developed, so stay tuned.
The driver was developed by the ADBC Driver Foundry, is implemented in Go, and is built on the Apache Cassandra GoCQL driver . It supports authentication, multiple contact points, configurable consistency and paging, and TLS connections, including custom CA certificates and mutual TLS.
To get started, provide a connection URI with a cassandra:// scheme:
cassandra://host:9042/keyspace
The driver can then be used like any other driver. For example, load it in Python with adbc-driver-manager:
from adbc_driver_manager import dbapi
with (
dbapi.connect(
driver="cassandra",
db_kwargs={"uri": "cassandra://localhost:9042/my_keyspace"},
) as con,
con.cursor() as cursor,
):
cursor.execute("SELECT * FROM my_table")
table = cursor.fetch_arrow_table()
Bug reports and feature requests are welcome through GitHub Issues in the cassandra repository in the ADBC Driver Foundry. You can also start a Discussion on GitHub or join the Columnar Community Slack .