Skip to main content

Crate mmdb

Crate mmdb 

Source
Expand description

MMDB — Modern Memory-Mapped Database

A high-performance LSM-Tree storage engine in pure Rust.

Re-exports§

pub use db::DB;
pub use db::Snapshot;
pub use db::pool_return;
pub use error::Error;
pub use error::Result;
pub use iterator::BidiIterator;
pub use iterator::DBIterator;
pub use options::CompactionFilter;
pub use options::CompactionFilterDecision;
pub use options::DbOptions;
pub use options::ReadOptions;
pub use options::WriteOptions;
pub use sst::format::CompressionType;
pub use types::SequenceNumber;
pub use types::WriteBatch;
pub use types::WriteBatchWithIndex;

Modules§

cache
Caching layer: block cache and table cache.
compaction
Compaction: background process to merge SST files and reduce read amplification.
db
Core DB implementation with WAL, MemTable, SST, MANIFEST, and Iterator.
error
Error types for MMDB.
iterator
Iterator implementations for reading data across multiple sources.
manifest
MANIFEST: tracks the set of SST files that make up each “Version” of the database.
memtable
MemTable: in-memory sorted key-value store backed by a lock-free skiplist.
options
Configuration options for MMDB.
rate_limiter
Token-bucket rate limiter for controlling compaction write throughput.
sst
Sorted String Table (SST) implementation.
stats
Database properties and statistics.
types
Core data types: InternalKey, ValueType, SequenceNumber.
wal
Write-Ahead Log (WAL) for crash recovery.