Crate auradb

Source
Expand description

AuraDB - High-performance Rust storage engine

This crate provides a storage engine with the following key innovations:

  • WAL-time Key-Value separation (BVLSM-inspired)
  • Adaptive (RL-driven) compaction (RusKey-inspired)
  • Learned indexes (DobLIX-inspired)

§Quick Start

use auradb::{Engine, EngineBuilder};
 
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let engine = EngineBuilder::new()
        .path("./auradb_data")
        .build()?;
     
    engine.put_str("key", "value")?;
    let value = engine.get_str("key")?;
    println!("Value: {:?}", value);
     
    engine.close().await?;
    Ok(())
}

Re-exports§

pub use api::Engine;
pub use api::EngineBuilder;
pub use api::AuraEngine;
pub use storage::Key;
pub use storage::Value;
pub use storage::ValuePointer;
pub use storage::Entry;
pub use storage::Batch;
pub use storage::Range;
pub use error::Error;
pub use error::Result;

Modules§

api
config
error
prelude
Common imports for the crate
storage