NeutronDB is a Log-structured merge-tree key-value store library written in Rust.
In your Cargo.toml
:
```
[dependencies] neutrondb = "1.0.0"
```
In your Rust file:
```
use neutrondb::Store;
```
In .gitignore
```
/ndb/
```
Connect
```
let mut accs = Store::connect("accs")?;
```
Put
```
accs.put("user1", "balance1")?;
```
Get
```
let balance1: String = accs.get("user1")?;
```
Get All
```
let accounts: Vec<(String, String)> = accs.get_all()?;
```
Delete
```
accs.delete("user1")?;
```
Pull requests, bug reports and any kind of suggestion are welcome.
2022-01-01