2026-03-26 19:48:27 +00:00
|
|
|
//! `rustdb-storage` -- Storage adapters for RustDb.
|
|
|
|
|
//!
|
|
|
|
|
//! Provides the [`StorageAdapter`] trait and two concrete implementations:
|
|
|
|
|
//! - [`MemoryStorageAdapter`] -- fast in-memory store backed by `DashMap`
|
|
|
|
|
//! - [`FileStorageAdapter`] -- JSON-file-per-collection persistent store
|
|
|
|
|
//!
|
|
|
|
|
//! Also includes an [`OpLog`] for operation logging and a [`WriteAheadLog`]
|
|
|
|
|
//! for crash recovery.
|
|
|
|
|
|
|
|
|
|
pub mod adapter;
|
|
|
|
|
pub mod error;
|
|
|
|
|
pub mod file;
|
|
|
|
|
pub mod memory;
|
|
|
|
|
pub mod oplog;
|
|
|
|
|
pub mod wal;
|
|
|
|
|
|
|
|
|
|
pub use adapter::StorageAdapter;
|
|
|
|
|
pub use error::{StorageError, StorageResult};
|
|
|
|
|
pub use file::FileStorageAdapter;
|
|
|
|
|
pub use memory::MemoryStorageAdapter;
|
2026-04-02 17:02:03 +00:00
|
|
|
pub use oplog::{OpLog, OpLogEntry, OpLogStats, OpType};
|
2026-03-26 19:48:27 +00:00
|
|
|
pub use wal::{WalOp, WalRecord, WriteAheadLog};
|