Crates.io | bb8-skytable |
lib.rs | bb8-skytable |
version | 0.3.1 |
source | src |
created_at | 2021-08-22 16:16:42.660026 |
updated_at | 2021-09-18 14:11:49.215449 |
description | Async bb8 connection pool for Skytable |
homepage | |
repository | https://github.com/heliumbrain/bb8-skytable |
max_upload_size | |
id | 440749 |
size | 4,578 |
Skytable rust client support library for the bb8 connection pool. Heavily based on bb8-redis
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();
}