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

Download history 30/week @ 2024-02-18 5/week @ 2024-02-25 57/week @ 2024-03-31 1/week @ 2024-04-07

58 downloads per month

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
~157K SLoC