heliumbrain / bb8-skytable

Skytable rust client support library for the bb8 connection pool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();
}

About

Skytable rust client support library for the bb8 connection pool


Languages

Language:Rust 100.0%