NeutronDB is a Log-structured merge-tree key-value store for Rust.
NeutronDB is still in development and is unstable until version 3.
In your Cargo.toml
:
text
[dependencies]
neutrondb = "2.3.0"
In your Rust file:
text
use neutrondb::Store;
In .gitignore
text
/neutrondb/
New
text
let mut accs = Store::new("accs")?;
Put
text
accs.put("user1", "balance1")?;
Get
text
let bal = accs.get("user_1")?;
Get All
text
let accounts = accs.get_all()?;
Delete
text
accs.delete("user1")?;
Pull requests, bug reports and any kind of suggestion are welcome.
2022-04-29