NeutronDB is a log-structured merge-tree key-value store for any implemented data type.
Roy R. O. Okello
text
[dependencies]
neutrondb = "5.0.4"
text
use neutrondb::Store;
Neutron Logs
```text
+-------------------+
| Log Type & Data |
| ... |
+-------------------+
```
Neutron Table
```text
+-----------+
| Version |
+-----------+
+-----------------+
| Keys & Values |
| ... |
+-----------------+
+----------------+
| Bloom Filter |
+----------------+
```
Neutron Graves
```text
+--------+
| Keys |
| ... |
+--------+
```
new: directory -> Store
text
let mut accounts_store: Store<Hash, Account> = Store::new("./ndb")?;
put: &key, &value
text
accounts_store.put(&Hash, &Account)?;
get: &key -> value
```text
let account = accounts_store.get(&Hash)?;
```
delete: &key
text
accounts_store.delete(&Hash)?;
MIT