The C/C++ driver is in maintenance mode. We are still accepting pull-requests and we will occasionally release critical bug fixes, but no ongoing active development is being done currently.
DataStax C/C++ Driver for Apache Cassandra® and DataStax Products
A modern, feature-rich and highly tunable C/C++ client library for
Apache Cassandra® 2.1+ using exclusively Cassandra’s binary protocol and
Cassandra Query Language v3. This driver can also be used with other DataStax
products:
Binary versions of the driver, available for multiple operating systems and
multiple architectures, can be obtained from our download server. The
source code is made available via GitHub.
Packages for the driver’s dependencies, libuv (1.x), OpenSSL, and zlib are also
provided under the dependencies directory for each platform (if applicable).
Note: CentOS and Ubuntu use the version of OpenSSL and zlib provided with the
distribution:
Starting with DataStax C/C++ driver for Apache Cassandra® v2.15.0, DataStax
Enterprise (DSE) support is now available; using the DSE driver exclusively is no
longer required for DSE customers.
For DSE driver users
Linking changes will be required when migrating to this driver. Replace -ldse with -lcassandra.
For Cassandra driver users
No changes will be required when upgrading to this driver. There will be new
driver dependencies when using any of the binary versions obtained from our
download server as Kerberos is utilized in the DSE features of this
driver. See the [installation] section for more information on obtaining the
dependencies for a specific platform.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
DataStax C/C++ Driver for Apache Cassandra® and DataStax Products
A modern, feature-rich and highly tunable C/C++ client library for Apache Cassandra® 2.1+ using exclusively Cassandra’s binary protocol and Cassandra Query Language v3. This driver can also be used with other DataStax products:
Getting the Driver
Binary versions of the driver, available for multiple operating systems and multiple architectures, can be obtained from our download server. The source code is made available via GitHub.
Packages for the driver’s dependencies, libuv (1.x), OpenSSL, and zlib are also provided under the
dependenciesdirectory for each platform (if applicable). Note: CentOS and Ubuntu use the version of OpenSSL and zlib provided with the distribution:Upgrading
Starting with DataStax C/C++ driver for Apache Cassandra® v2.15.0, DataStax Enterprise (DSE) support is now available; using the DSE driver exclusively is no longer required for DSE customers.
For DSE driver users
Linking changes will be required when migrating to this driver. Replace
-ldsewith-lcassandra.For Cassandra driver users
No changes will be required when upgrading to this driver. There will be new driver dependencies when using any of the binary versions obtained from our download server as Kerberos is utilized in the DSE features of this driver. See the [installation] section for more information on obtaining the dependencies for a specific platform.
Features
frozen<>and Cassandra version metadataCompatibility
This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra’s native protocol. The current version works with:
A complete compatibility matrix for both Apache Cassandra® and DataStax Enterprise can be found here.
Disclaimer: DataStax products do not support big-endian systems.
Documentation
Getting Help
Feedback Requested
Help us focus our efforts! Provide your input on the C/C++ Driver Platform and Runtime Survey (we kept it short).
Examples
The driver includes several examples in the examples directory.
A Simple Example
License
© DataStax, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.