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 maintains the Cassandra GoCQL driver (gocql) .
GoCQL compatibility
GoCQL is compatible with Astra DB, DSE, HCD, and open-source Cassandra.
For information about specific versions of Go and Apache Cassandra supported by GoCQL, see Supported Versions in the GoCQL documentation.
GoCQL 2.x
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.
The gocql-astra package isn’t compatible with GoCQL 2.0.
For more information, see Connect GoCQL.
GoCQL 1.x
If you are using GoCQL 1.x, see the GoCQL 1.x documentation for usage and compatibility information.
To upgrade from GoCQL 1.x to 2.x, see the GoCQL upgrade guide.
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.
|
Until |
To get started with gocql-astra, see Connect to Astra DB with the Go driver.