Expand description
§vsdb
vsdb is a high-performance, embedded database designed to feel like using
Rust’s standard collections. It provides persistent, disk-backed data
structures — Mapx (a HashMap-like map), MapxOrd (a BTreeMap-like
ordered map), and VerMap
(Git-model versioned storage with branching, commits, and merge).
This crate is the primary entry point for most users.
Re-exports§
pub use basic::mapx::Mapx;pub use basic::mapx_ord::MapxOrd;pub use basic::mapx_ord_rawkey::MapxOrdRawKey;pub use basic::orphan::Orphan;pub use common::ende::KeyDe;pub use common::ende::KeyEn;pub use common::ende::KeyEnDe;pub use common::ende::KeyEnDeOrdered;pub use common::ende::ValueDe;pub use common::ende::ValueEn;pub use common::ende::ValueEnDe;pub use dagmap::DagMapId;pub use dagmap::raw::DagMapRaw;pub use dagmap::rawkey::DagMapRawKey;pub use vsdb_core;
Modules§
- basic
- User-facing, typed data structures (e.g.,
Mapx,MapxOrd). - common
- Common Components
- dagmap
- Data structures for representing directed acyclic graphs (DAGs).
- versioned
- Git-model versioned storage: branches, commits, merge, and history.
Macros§
- cow_
bytes_ bounds - define_
map_ wrapper - entry_
or_ insert_ via_ mock - parse_
int - A macro to parse a byte slice into a specified integer type.
- parse_
prefix - A macro to parse a byte slice into a
Pretype.
Structs§
- MapxRaw
- A raw, disk-based, key-value map.
- PersistentB
Tree - A persistent (copy-on-write) B+ tree backed by
MapxRaw.
Constants§
- GB
- A constant representing 1 gigabyte in bytes.
- KB
- A constant representing 1 kilobyte in bytes.
- MB
- A constant representing 1 megabyte in bytes.
- NULL
- A constant representing a null or empty byte slice.
Traits§
- Batch
Trait - Trait for batch write operations
Functions§
- vsdb_
flush - Flushes all data to disk.
- vsdb_
get_ base_ dir - Returns the base directory path for VSDB.
- vsdb_
get_ custom_ dir - Returns the custom directory path for VSDB.
- vsdb_
set_ base_ dir - Sets the base directory path for VSDB manually.