db-rs

An ergonomic, embedded, single-threaded database for Rustaceans.

Strengths

Quickstart

Add the following to your Cargo.toml:

toml db-rs = "0.1.16" db-rs-derive = "0.1.16"

Define your schema:

```rust use dbrsderive::Schema; use db_rs::{Single, LookupTable};

[derive(Schema)]

struct SchemaV1 { owner: Single, admins: List, users: LookupTable, } ```

Initialize your DB:

```rust use dbrs::Db; use dbrs::Config;

fn main() { let mut db = SchemaV1::init(Config::infolder("/tmp/test/"))?; db.owner.insert("Parth".tostring())?; } ```

Active areas of thought and research

Used by