Expand description
§Common Components
This module provides common components and utilities used throughout the vsdb crate.
It re-exports items from vsdb_core::common and includes the ende module for
encoding and decoding traits.
Modules§
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_
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.