3 unstable releases

0.3.1 Sep 18, 2021
0.3.0 Sep 18, 2021
0.2.0 Aug 22, 2021

#17 in #bb8-connection

MIT license

5KB
59 lines

Documentation Crates.io

bb8-skytable

Skytable rust client support library for the bb8 connection pool. Heavily based on bb8-redis

Basic usage example

use bb8_skytable::{
    bb8,
    skytable::{actions::Actions},
    SkytableConnectionManager
};

#[tokio::main]
async fn main() {
	let manager = SkytableConnectionManager::new("127.0.0.1", 2003);
	let pool = bb8::Pool::builder().build(manager).await.unwrap();
  	let mut conn = pool.get().await.unwrap();
    conn.set("x", "100").await.unwrap();
}

lib.rs:

Skytable support for the bb8 connection pool.

Basic Example

use bb8_skytable::{
    bb8,
    skytable::{actions::Actions},
    SkytableConnectionManager
};

#[tokio::main]
async fn main() {
	let manager = SkytableConnectionManager::new("127.0.0.1", 2003);
   	let pool = bb8::Pool::builder().build(manager).await.unwrap();
  	let mut conn = pool.get().await.unwrap();
    conn.set("x", "100").await.unwrap();
}

Dependencies

~4–16MB
~155K SLoC