CQL for Cassandra 2.0

Using CQL

CQL provides an API to Cassandra that is simpler than the Thrift API for new applications. The Thrift API and legacy versions of CQL expose the internal storage structure of Cassandra. CQL adds an abstraction layer that hides implementation details of this structure and provides native syntaxes for collections and other common encodings.

Accessing CQL

You can use CQL on the command line of a Cassandra node, from DataStax DevCenter, or programmatically using a number of APIs and drivers. Common ways to access CQL are:

  • Start cqlsh, the Python-based command-line client, on the command line of a Cassandra node.
  • Use DataStax DevCenter, a graphical user interface.
  • Use a DataStax driver for programmatic access.
  • Use the set_cql_version Thrift method for programmatic access.

This document presents examples using cqlsh.

Show/hide