Crate rustlite

Crate rustlite 

Source
Expand description

§RustLite

A lightweight, high-performance embedded database written in Rust.

RustLite is designed to be:

  • Fast: Optimized for high-throughput operations
  • Reliable: ACID guarantees with write-ahead logging
  • Embeddable: Zero configuration, single-file deployment
  • Safe: Memory-safe by design using Rust’s type system

§Features (Roadmap)

  • v0.1: Core key-value store
  • v0.2: Persistence and Write-Ahead Logging (WAL)
  • v0.3: Indexing support (B-Tree, Hash)
  • v0.4: Query engine with SQL-like syntax
  • v0.5: Transaction support with MVCC
  • v1.0: Full ACID compliance and production readiness

§Quick Start

use rustlite::Database;

// Create a new in-memory database
let db = Database::new()?;

// Insert a key-value pair
db.put(b"hello", b"world")?;

// Retrieve the value
let value = db.get(b"hello")?;
assert_eq!(value.as_deref(), Some(&b"world"[..]));

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

error
Error types for RustLite.
index
Indexing module.
query
Query engine module.
storage
Storage engine module.
transaction
Transaction management module.
wal
Write-Ahead Logging (WAL) module.

Structs§

Database
The main database handle.