rapiddb

Crates.iorapiddb
lib.rsrapiddb
version0.1.32
sourcesrc
created_at2022-06-20 16:09:30.090515
updated_at2024-10-17 20:30:28.033578
descriptionA reasonably fast configurable embedded key-value sensor database
homepage
repositoryhttps://github.com/kruserr/rapiddb/
max_upload_size
id609619
size58,823
Ragnar Kruse (kruserr)

documentation

README



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.

Commit count: 215

cargo fmt