mentedb_storage/lib.rs
1//! MenteDB Storage Engine: page based storage with WAL and buffer pool.
2//!
3//! This crate implements the low-level storage engine:
4//! - **Page manager**: file backed 16KB pages with free list allocation
5//! - **Write ahead log (WAL)**: append only, CRC checked, LZ4 compressed entries
6//! - **Buffer pool**: fixed capacity page cache with CLOCK eviction
7//! - **Storage engine**: unified facade for memory node persistence
8
9/// Snapshot backup utilities.
10pub mod backup;
11/// Fixed capacity page cache with CLOCK eviction.
12pub mod buffer;
13/// Unified storage facade for memory persistence.
14pub mod engine;
15/// File backed 16KB page manager with free list allocation.
16pub mod page;
17/// Append only write ahead log with CRC checks and LZ4 compression.
18pub mod wal;
19
20// Re-export key types at crate root for convenience.
21pub use buffer::BufferPool;
22pub use engine::StorageEngine;
23pub use page::{PAGE_DATA_SIZE, PAGE_SIZE, Page, PageHeader, PageId, PageType};
24pub use wal::{Lsn, Wal, WalEntry, WalEntryType};