baildon
A very simple B+Tree library.
Features:
- Generic B+Tree
- Asynchronous (uses tokio)
- Write Ahead Log
- serde based storage format (bincode)
use Baildon;
use Direction;
// Create a B+Tree with usize for key and value, branching factor 7
let tree = try_new
.await
.expect;
// Collect all our keys
let keys = tree
.keys
.await
.
.await;
// It should be empty, we didn't add any keys
assert!;
// Remove our B+Tree file, we aren't going to use it again
remove_file.expect;
Installation
[]
= "0.1"
Examples
There are a few simple examples to show how to use the library:
Benchmarks
I've got some very simple benchmarks that I've used during development to look for regressions. I'll aim to improve these at some point.
License
Apache 2.0 licensed. See LICENSE for details.