Skip to main content

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
9pub mod backup;
10pub mod buffer;
11pub mod engine;
12pub mod page;
13pub mod wal;
14
15// Re-export key types at crate root for convenience.
16pub use buffer::BufferPool;
17pub use engine::StorageEngine;
18pub use page::{PAGE_DATA_SIZE, PAGE_SIZE, Page, PageHeader, PageId, PageType};
19pub use wal::{Lsn, Wal, WalEntry, WalEntryType};