Skip to main content

Crate overdrive

Crate overdrive 

Source
Expand description

OverDrive-DB Rust SDK v1.0.0

Zero-config embedded document database with SQL, MVCC transactions, and 6 storage engines.

§Quick Start

use overdrive::OverdriveDb;
use serde_json::json;

let mut odb = OverdriveDb::open("app.odb").unwrap();
odb.create_table("users").unwrap();
let id = odb.insert("users", &json!({"name":"Alice","age":30})).unwrap();
let doc = odb.get("users", &id).unwrap();
println!("{}", doc.unwrap());
odb.close().unwrap();

Re-exports§

pub use error::Result;
pub use error::SdkError;

Modules§

error
ffi

Structs§

OpenOptions
Options for opening a database.
OverdriveDb
OverDrive-DB embedded database handle.
Transaction
A live MVCC transaction handle.

Enums§

IsolationLevel
MVCC transaction isolation levels.