Go driver for Apache Cassandra®
This page describes compatibility between the Apache Cassandra GoCQL driver and DSE, HCD, Astra DB, and open-source Cassandra.
The Apache Software Foundation (ASF) maintains the Cassandra GoCQL driver (gocql) .
GoCQL compatibility
GoCQL is compatible with Astra DB, DSE, HCD, and open-source Cassandra.
GoCQL version 2.0 introduced breaking changes and new features, including support for the Apache Cassandra 5.x built-in vector type. Earlier versions of GoCQL don’t support the vector type.
To upgrade from GoCQL 1.x to 2.x, see the GoCQL upgrade guide.
To access GoCQL 2.x with gocql-astra, you must upgrade to gocql-astra 2.x.
See the GoCQL Astra v1 to v2 migration guide.
For information about specific versions of Go and Apache Cassandra supported by GoCQL, see Supported Versions in the GoCQL documentation.
Connect GoCQL
-
Cassandra
-
DSE
-
HCD
-
Astra DB
See Connecting to the cluster in the GoCQL documentation.
See Connecting to the cluster in the GoCQL documentation.
See Connecting to the cluster in the GoCQL documentation.
For Astra DB connections, DataStax provides gocql-astra.
This package includes gocql and additional support for connections to Astra DB.
To access GoCQL 2.x with gocql-astra, you must use gocql-astra 2.x.
In alignment with the deprecation of gocql 1.x, gocql-astra 1.x is no longer maintained and not recommended.
Use gocql-astra 2.x instead.
To upgrade from gocql-astra 1.x to 2.x, see the GoCQL Astra v1 to v2 migration guide.
To get started with gocql-astra, see Connect to Astra DB with the Go driver.