{"id":18336297,"url":"https://github.com/byconity/cassandra","last_synced_at":"2025-06-10T22:05:27.101Z","repository":{"id":79868043,"uuid":"581135045","full_name":"ByConity/cassandra","owner":"ByConity","description":"use as submodule for ByConity","archived":false,"fork":false,"pushed_at":"2023-07-13T05:47:53.000Z","size":12385,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:55:12.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ByConity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-22T11:14:11.000Z","updated_at":"2023-07-05T07:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a00075a-6f9f-4829-b6fb-5da5305e263d","html_url":"https://github.com/ByConity/cassandra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByConity%2Fcassandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByConity%2Fcassandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByConity%2Fcassandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByConity%2Fcassandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByConity","download_url":"https://codeload.github.com/ByConity/cassandra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByConity%2Fcassandra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159661,"owners_count":22814496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T20:07:14.637Z","updated_at":"2025-06-10T22:05:27.079Z","avatar_url":"https://github.com/ByConity.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":":warning: **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.**\n\n# DataStax C/C++ Driver for Apache Cassandra® and DataStax Products\n\nA modern, feature-rich and highly tunable C/C++ client library for\n[Apache Cassandra®] 2.1+ using exclusively Cassandra's binary protocol and\nCassandra Query Language v3. This driver can also be used with other DataStax\nproducts:\n\n* [DataStax Enterprise]\n* [DataStax Constellation]\n\n## Getting the Driver\n\nBinary versions of the driver, available for multiple operating systems and\nmultiple architectures, can be obtained from our [download server]. The\nsource code is made available via [GitHub].\n\nPackages for the driver's dependencies, libuv (1.x), OpenSSL, and zlib are also\nprovided under the `dependencies` directory for each platform (if applicable).\n__Note__: CentOS and Ubuntu use the version of OpenSSL and zlib provided with the\ndistribution:\n\n* [CentOS 6][centos-6-dependencies]\n* [CentOS 7][centos-7-dependencies]\n* [CentOS 8][centos-8-dependencies]\n* [Ubuntu 14.04][ubuntu-14-04-dependencies]\n* [Ubuntu 16.04][ubuntu-16-04-dependencies]\n* [Ubuntu 18.04][ubuntu-18-04-dependencies]\n* [Windows][windows-dependencies]\n\n## Upgrading\n\nStarting with DataStax C/C++ driver for Apache Cassandra® v2.15.0, DataStax\nEnterprise (DSE) support is now available; using the DSE driver exclusively is no\nlonger required for DSE customers.\n\n### For DSE driver users\n\nLinking changes will be required when migrating to this driver. Replace `-ldse` with `-lcassandra`.\n\n### For Cassandra driver users\n\nNo changes will be required when upgrading to this driver. There will be new\ndriver dependencies when using any of the binary versions obtained from our\n[download server] as [Kerberos] is utilized in the [DSE features] of this\ndriver. See the [installation] section for more information on obtaining the\ndependencies for a specific platform.\n\n## Features\n\n* [Asynchronous API]\n* [Simple], [Prepared], and [Batch] statements\n* [Asynchronous I/O], [parallel execution], and request pipelining\n* Connection pooling\n* Automatic node discovery\n* Automatic reconnection\n* Configurable [load balancing]\n* Works with any cluster size\n* [Authentication]\n* [SSL]\n* [Latency-aware routing]\n* [Performance metrics]\n* [Tuples] and [UDTs]\n* [Nested collections]\n* [Retry policies]\n* [Client-side timestamps]\n* [Data types]\n* [Idle connection heartbeats]\n* Support for materialized view and secondary index metadata\n* Support for clustering key order, `frozen\u003c\u003e` and Cassandra version metadata\n* [Blacklist], [whitelist DC], and [blacklist DC] load balancing policies\n* [Custom] authenticators\n* [Reverse DNS] with SSL peer identity verification support\n* Randomized contact points\n* [Speculative execution]\n* DSE Features\n  * [DSE authentication]\n    * Plaintext/DSE\n    * LDAP\n    * GSSAPI (Kerberos)\n  * [DSE geospatial types]\n  * DSE [proxy authentication][DSE Proxy Authentication] and [proxy execution][DSE Proxy Execution]\n  * [DSE DateRange]\n* Support for [DataStax Constellation] Cloud Data Platform\n\n## Compatibility\n\nThis driver works exclusively with the Cassandra Query Language v3 (CQL3) and\nCassandra's native protocol. The current version works with:\n\n* Apache Cassandra® versions 2.1, 2.2 and 3.0+\n* Architectures: 32-bit (x86) and 64-bit (x64)\n* Compilers: GCC 4.1.2+, Clang 3.4+, and MSVC 2010/2012/2013/2015/2017/2019\n\nA complete compatibility matrix for both Apache Cassandra®\nand DataStax Enterprise can be found [here][cpp-driver-compatability-matrix].\n\n__Disclaimer__: DataStax products do not support big-endian systems.\n\n## Documentation\n\n* [Home]\n* [API]\n* [Getting Started]\n* [Building]\n\n## Getting Help\n\n* JIRA: https://datastax-oss.atlassian.net/browse/CPP\n* Mailing List: https://groups.google.com/a/lists.datastax.com/forum/#!forum/cpp-driver-user\n\n## Feedback Requested\n\n**Help us focus our efforts!** [Provide your input] on the C/C++ Driver Platform\nand Runtime Survey (we kept it short).\n\n## Examples\n\nThe driver includes several examples in the [examples] directory.\n\n## A Simple Example\n```c\n#include \u003ccassandra.h\u003e\n/* Use \"#include \u003cdse.h\u003e\" when connecting to DataStax Enterpise */\n#include \u003cstdio.h\u003e\n\nint main(int argc, char* argv[]) {\n  /* Setup and connect to cluster */\n  CassFuture* connect_future = NULL;\n  CassCluster* cluster = cass_cluster_new();\n  CassSession* session = cass_session_new();\n  char* hosts = \"127.0.0.1\";\n  if (argc \u003e 1) {\n    hosts = argv[1];\n  }\n\n  /* Add contact points */\n  cass_cluster_set_contact_points(cluster, hosts);\n\n  /* Provide the cluster object as configuration to connect the session */\n  connect_future = cass_session_connect(session, cluster);\n\n  if (cass_future_error_code(connect_future) == CASS_OK) {\n    CassFuture* close_future = NULL;\n\n    /* Build statement and execute query */\n    const char* query = \"SELECT release_version FROM system.local\";\n    CassStatement* statement = cass_statement_new(query, 0);\n\n    CassFuture* result_future = cass_session_execute(session, statement);\n\n    if (cass_future_error_code(result_future) == CASS_OK) {\n      /* Retrieve result set and get the first row */\n      const CassResult* result = cass_future_get_result(result_future);\n      const CassRow* row = cass_result_first_row(result);\n\n      if (row) {\n        const CassValue* value = cass_row_get_column_by_name(row, \"release_version\");\n\n        const char* release_version;\n        size_t release_version_length;\n        cass_value_get_string(value, \u0026release_version, \u0026release_version_length);\n        printf(\"release_version: '%.*s'\\n\", (int)release_version_length, release_version);\n      }\n\n      cass_result_free(result);\n    } else {\n      /* Handle error */\n      const char* message;\n      size_t message_length;\n      cass_future_error_message(result_future, \u0026message, \u0026message_length);\n      fprintf(stderr, \"Unable to run query: '%.*s'\\n\", (int)message_length, message);\n    }\n\n    cass_statement_free(statement);\n    cass_future_free(result_future);\n\n    /* Close the session */\n    close_future = cass_session_close(session);\n    cass_future_wait(close_future);\n    cass_future_free(close_future);\n  } else {\n    /* Handle error */\n    const char* message;\n    size_t message_length;\n    cass_future_error_message(connect_future, \u0026message, \u0026message_length);\n    fprintf(stderr, \"Unable to connect: '%.*s'\\n\", (int)message_length, message);\n  }\n\n  cass_future_free(connect_future);\n  cass_cluster_free(cluster);\n  cass_session_free(session);\n\n  return 0;\n}\n```\n\n## License\n\n\u0026copy; DataStax, Inc.\n\nLicensed under the Apache License, Version 2.0 (the “License”); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License.\n\n[Apache Cassandra®]: http://cassandra.apache.org\n[DataStax Enterprise]: http://www.datastax.com/products/datastax-enterprise\n[Examples]: examples/\n[download server]: http://downloads.datastax.com/cpp-driver/\n[GitHub]: https://github.com/datastax/cpp-driver\n[cpp-driver-compatability-matrix]: https://docs.datastax.com/en/developer/driver-matrix/doc/cppDrivers.html#cpp-drivers\n[Home]: http://docs.datastax.com/en/developer/cpp-driver/latest\n[API]: http://docs.datastax.com/en/developer/cpp-driver/latest/api\n[Getting Started]: http://docs.datastax.com/en/developer/cpp-driver/latest/topics\n[Building]: http://docs.datastax.com/en/developer/cpp-driver/latest/topics/building\n[Provide your input]: http://goo.gl/forms/ihKC5uEQr6\n[centos-6-dependencies]: http://downloads.datastax.com/cpp-driver/centos/6/dependencies\n[centos-7-dependencies]: http://downloads.datastax.com/cpp-driver/centos/7/dependencies\n[centos-8-dependencies]: http://downloads.datastax.com/cpp-driver/centos/8/dependencies\n[ubuntu-14-04-dependencies]: http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies\n[ubuntu-16-04-dependencies]: http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies\n[ubuntu-18-04-dependencies]: http://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies\n[windows-dependencies]: http://downloads.datastax.com/cpp-driver/windows/dependencies\n[DataStax Constellation]: https://constellation.datastax.com\n[Kerberos]: https://web.mit.edu/kerberos\n\n[Asynchronous API]: http://datastax.github.io/cpp-driver/topics/#futures\n[Simple]: http://datastax.github.io/cpp-driver/topics/#executing-queries\n[Prepared]: http://datastax.github.io/cpp-driver/topics/basics/prepared_statements/\n[Batch]: http://datastax.github.io/cpp-driver/topics/basics/batches/\n[Asynchronous I/O]: http://datastax.github.io/cpp-driver/topics/#asynchronous-i-o\n[parallel execution]: http://datastax.github.io/cpp-driver/topics/#thread-safety\n[load balancing]: http://datastax.github.io/cpp-driver/topics/configuration/#load-balancing\n[Authentication]: http://datastax.github.io/cpp-driver/topics/security/#authentication\n[SSL]: http://datastax.github.io/cpp-driver/topics/security/ssl/\n[Latency-aware routing]: http://datastax.github.io/cpp-driver/topics/configuration/#latency-aware-routing\n[Performance metrics]: http://datastax.github.io/cpp-driver/topics/metrics/\n[Tuples]: http://datastax.github.io/cpp-driver/topics/basics/tuples/\n[UDTs]: http://datastax.github.io/cpp-driver/topics/basics/user_defined_types/\n[Nested collections]: http://datastax.github.io/cpp-driver/topics/basics/binding_parameters/#nested-collections\n[Data types]: http://datastax.github.io/cpp-driver/topics/basics/data_types/\n[Retry policies]: http://datastax.github.io/cpp-driver/topics/configuration/retry_policies/\n[Client-side timestamps]: http://datastax.github.io/cpp-driver/topics/basics/client_side_timestamps/\n[Idle connection heartbeats]: http://datastax.github.io/cpp-driver/topics/configuration/#connection-heartbeats\n[Blacklist]: http://datastax.github.io/cpp-driver/topics/configuration/#blacklist\n[whitelist DC]: http://datastax.github.io/cpp-driver/topics/configuration/#datacenter\n[blacklist DC]: http://datastax.github.io/cpp-driver/topics/configuration/#datacenter\n[Custom]: http://datastax.github.io/cpp-driver/topics/security/#custom\n[Reverse DNS]: http://datastax.github.io/cpp-driver/topics/security/ssl/#enabling-cassandra-identity-verification\n[Speculative execution]: http://datastax.github.io/cpp-driver/topics/configuration/#speculative-execution\n[DSE authentication]: http://docs.datastax.com/en/developer/cpp-driver/latest/dse_features/authentication\n[DSE geospatial types]: http://docs.datastax.com/en/developer/cpp-driver/latest/dse_features/geotypes\n[DSE Proxy Authentication]: http://docs.datastax.com/en/developer/cpp-driver/latest/dse_features/authentication/#proxy-authentication\n[DSE Proxy Execution]: http://docs.datastax.com/en/developer/cpp-driver/latest/dse_features/authentication/#proxy-execution\n[DSE DateRange]: https://github.com/datastax/cpp-driver/blob/master/examples/dse/date_range/date_range.c\n[DSE features]: http://docs.datastax.com/en/developer/cpp-driver/latest/dse_features\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyconity%2Fcassandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyconity%2Fcassandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyconity%2Fcassandra/lists"}