//! `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; pub use oplog::{OpLog, OpLogEntry, OpLogStats, OpType}; pub use wal::{WalOp, WalRecord, WriteAheadLog};