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) Latest gocql release on GitHub.

GoCQL compatibility

GoCQL is compatible with Astra DB, DSE, HCD, and open-source Cassandra.

GoCQL 2.x is recommended. GoCQL 1.x is no longer maintained.

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.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM