CDRS-async - async Apache Cassandra and Scylla driver for Rust
CDRS-async is an asynchronous driver for Apache Cassandra and Scylla databases.
It's still alpha but you can try it out.
Features
-
LZ4, Snappy compression;
-
Cassandra-to-Rust data deserialization;
-
Pluggable authentication strategies;
-
ScyllaDB support;
-
Server events listening;
-
Multiple CQL version support (3, 4), full spec implementation;
-
Query tracing information.
Getting started
Add CDRS-async to your Cargo.toml file as a dependency:
= { = "*" }
Then add it as an external crate to your main.rs
file:
extern crate async_std;
extern crate async_trait;
extern crate cdrs_async;
use ;
use ;
const CREATE_KS_QUERY: &'static str = r#"
CREATE KEYSPACE IF NOT EXISTS async_cdrs_3
WITH REPLICATION = {
'class' : 'SimpleStrategy',
'replication_factor' : 1
};
"#;
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.