{"id":15056720,"url":"https://github.com/alexpikalov/cdrs","last_synced_at":"2025-09-11T04:31:23.814Z","repository":{"id":54432829,"uuid":"71658040","full_name":"AlexPikalov/cdrs","owner":"AlexPikalov","description":"Cassandra DB native client written in Rust language. Find 1.x versions on https://github.com/AlexPikalov/cdrs/tree/v.1.x Looking for an async version? - Check WIP https://github.com/AlexPikalov/cdrs-async","archived":true,"fork":false,"pushed_at":"2021-02-18T12:08:42.000Z","size":1979,"stargazers_count":342,"open_issues_count":34,"forks_count":58,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-01-05T15:08:18.585Z","etag":null,"topics":["cassandra","cdrs","client","database","driver","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/AlexPikalov.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"alexpikalov","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-10-22T18:30:53.000Z","updated_at":"2025-01-02T19:17:25.000Z","dependencies_parsed_at":"2022-08-13T15:31:02.379Z","dependency_job_id":null,"html_url":"https://github.com/AlexPikalov/cdrs","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexPikalov%2Fcdrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexPikalov%2Fcdrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexPikalov%2Fcdrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexPikalov%2Fcdrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexPikalov","download_url":"https://codeload.github.com/AlexPikalov/cdrs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232601092,"owners_count":18548419,"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":["cassandra","cdrs","client","database","driver","rust"],"created_at":"2024-09-24T21:55:42.379Z","updated_at":"2025-01-05T15:08:56.030Z","avatar_url":"https://github.com/AlexPikalov.png","language":"Rust","funding_links":["https://patreon.com/alexpikalov"],"categories":[],"sub_categories":[],"readme":"# CDRS [![crates.io version](https://img.shields.io/crates/v/cdrs.svg)](https://crates.io/crates/cdrs) [![Build Status](https://travis-ci.org/AlexPikalov/cdrs.svg?branch=master)](https://travis-ci.org/AlexPikalov/cdrs) [![Build status](https://ci.appveyor.com/api/projects/status/sirj4flws6o0dvb7/branch/master?svg=true)](https://ci.appveyor.com/project/harrydevnull/cdrs/branch/master)\n\n## CDRS is looking for maintainers\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./cdrs-logo.png\" alt=\"CDRS - Apache Cassandra driver\"/\u003e\n\u003c/p\u003e\n\nCDRS is Apache **C**assandra **d**river written in pure **R**u**s**t.\n\n💡Looking for an async version?\n  - async-std https://github.com/AlexPikalov/cdrs-async (API is not fully compatible with https://github.com/AlexPikalov/cdrs)\n  - tokio https://github.com/AlexPikalov/cdrs/tree/async-tokio\n\n## Features\n\n- TCP/SSL connection;\n- Load balancing;\n- Connection pooling;\n- LZ4, Snappy compression;\n- Cassandra-to-Rust data deserialization;\n- Pluggable authentication strategies;\n- [ScyllaDB](https://www.scylladb.com/) support;\n- Server events listening;\n- Multiple CQL version support (3, 4), full spec implementation;\n- Query tracing information.\n\n## Documentation and examples\n\n- [User guide](./documentation).\n- [Examples](./examples).\n- API docs (release).\n- Using ScyllaDB with RUST [lesson](https://university.scylladb.com/courses/using-scylla-drivers/lessons/rust-and-scylla/).\n\n## Getting started\n\nAdd CDRS to your `Cargo.toml` file as a dependency:\n\n```toml\ncdrs = { version = \"2\" }\n```\n\nThen add it as an external crate to your `main.rs`:\n\n```rust\nextern crate cdrs;\n\nuse cdrs::authenticators::NoneAuthenticator;\nuse cdrs::cluster::session::{new as new_session};\nuse cdrs::cluster::{ClusterTcpConfig, NodeTcpConfigBuilder};\nuse cdrs::load_balancing::RoundRobin;\nuse cdrs::query::*;\n\nfn main() {\n  let node = NodeTcpConfigBuilder::new(\"127.0.0.1:9042\", NoneAuthenticator {}).build();\n  let cluster_config = ClusterTcpConfig(vec![node]);\n  let no_compression =\n    new_session(\u0026cluster_config, RoundRobin::new()).expect(\"session should be created\");\n\n  let create_ks: \u0026'static str = \"CREATE KEYSPACE IF NOT EXISTS test_ks WITH REPLICATION = { \\\n                                 'class' : 'SimpleStrategy', 'replication_factor' : 1 };\";\n  no_compression.query(create_ks).expect(\"Keyspace create error\");\n}\n```\n\nThis example configures a cluster consisting of a single node, and uses round robin load balancing and default `r2d2` values for connection pool.\n\n## License\n\nThis project is licensed under either of\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpikalov%2Fcdrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexpikalov%2Fcdrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexpikalov%2Fcdrs/lists"}