Expand description
§RapidDB
A reasonably fast configurable embedded key-value sensor database
§Features
- Lightweight embedded database
- Simple key-value database interface
- Simple and flexible optional embedded REST API
- Memory first with on-disk persistence
- Memory Mapped Append-only Vector backing storage
- Bring your own database or API implementation
- Store sensor data inside a sensor database
§Getting started
Cargo.toml
[dependencies]
rapiddb = "0.1"
src/main.rs
use rapiddb::traits::IDatabase;
pub fn main() {
let mut db = rapiddb::db::MMAVDatabase::new();
let value = b"{\"key\": \"value\"}";
db.post("test-0", value);
assert_eq!(db.get_latest("test-0"), value);
}
Run the database with cargo
cargo run --release
§Optional REST API
Visit further install options.
§Documentation
Visit the Documentation.
§Examples
Visit the Examples.
Modules§
- RapidDB Databases
- RapidDB Traits
- RapidDB Types