chore: reorg

This commit is contained in:
2020-10-17 12:03:44 +08:00
parent bf1a0343cc
commit 004599c8e4
19 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// http://sled.rs/
fn main() -> Result<(), Box<dyn std::error::Error>>{
let path = "a.file";
let tree = sled::open(path)?;
let k = "hello";
let v = "world";
// insert and get, similar to std's BTreeMap
tree.insert(k, v)?;
for kv in tree.range(k..) {
println!("kv: {:?}", kv);
}
tree.flush()?;
Ok(())
}