Expand description
Manages the storage layer, raw data types, and shared utilities.
This module provides the storage engine along with fundamental
types such as RawKey, RawValue, and environment management functions.
§Common components
This module provides common components and utilities used throughout the VSDB framework. It includes type definitions, constants, macros, and functions for managing the underlying database environment.
Structs§
- VsDB
- A struct representing the VsDB database.
Constants§
- BIGGEST_
RESERVED_ ID - The biggest reserved ID.
- 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.
- PREFIX_
SIZE - The size of a prefix in bytes.
Statics§
- VSDB
- The global instance of the VsDB database.
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_
get_ meta_ dir - Returns the instance-meta directory path for VSDB.
- vsdb_
meta_ path - Returns the meta file path for a given instance ID.
- vsdb_
set_ base_ dir - Sets the base directory path for VSDB manually.
Type Aliases§
- Pre
- A type alias for a prefix, represented as a
u64. - PreBytes
- A type alias for a prefix represented as a byte array.
- RawBytes
- A type alias for a vector of bytes, commonly used for raw data.
- RawKey
- A type alias for a raw key, represented as a vector of bytes.
- RawValue
- A type alias for a raw value, represented as a vector of bytes.