BREAKING CHANGE(core): replace the TypeScript database engine with a Rust-backed embedded server and bridge
This commit is contained in:
22
rust/crates/rustdb-storage/src/lib.rs
Normal file
22
rust/crates/rustdb-storage/src/lib.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
//! `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, OpType};
|
||||
pub use wal::{WalOp, WalRecord, WriteAheadLog};
|
||||
Reference in New Issue
Block a user