Crates.io | toboggan-kv |
lib.rs | toboggan-kv |
version | 0.1.2 |
source | src |
created_at | 2021-02-23 05:36:50.448445 |
updated_at | 2021-02-23 05:39:25.021962 |
description | Toboggan-kv is an abstraction layer over multiple KV stores |
homepage | |
repository | https://github.com/mindbeam/toboggan-kv |
max_upload_size | |
id | 359319 |
size | 24,840 |
Sled-flavored KV abstraction layer
let bta = BTreeAdapter::new();
braap(bta);
let tmpdir = tempfile::tempdir().unwrap();
let sa = SledAdapter::open(tmpdir.path()).unwrap();
braap(sa);
fn braap<T:Toboggan>( store: T ){
let beasts = store.open_tree("beasts").unwrap();
beasts.insert("meow", "cat").unwrap();
}