Expand description
Internal component of the
noxudatabase.This crate is published only so the
noxuumbrella crate can depend on it. Usenoxu(noxu = "3") in applications; depend on this crate directly only if you are extending the engine internals. Its API may change without a major version bump.
Database internals for Noxu DB.
internal implementations including EnvironmentImpl, DatabaseImpl, CursorImpl, DbTree, MemoryBudget, INList.
Re-exports§
pub use backup_manager::BackupDestination;pub use backup_manager::BackupManager;pub use cursor_impl::CursorImpl;pub use dbi_config::DbiEnvConfig;pub use disk_ordered_cursor_impl::DiskOrderedCursorImpl;pub use disk_ordered_cursor_impl::DiskOrderedCursorOptions;pub use replica_ack::AckWaitError;pub use replica_ack::AckWaitErrorKind;pub use replica_ack::ReplicaAckCoordinator;pub use replica_ack::ReplicaAckPolicyKind;pub use throughput_stats::ThroughputStats;pub use throughput_stats::ThroughputStatsSnapshot;
Modules§
- backup_
manager - Automatic backup manager.
- cursor_
impl - Internal cursor implementation.
- dbi_
config - Construction-time configuration for
EnvironmentImpl. - disk_
ordered_ cursor_ impl - Disk-ordered cursor implementation.
- dup_
key_ data - Sorted-duplicate two-part key encoding.
- replica_
ack - Replica-acknowledgment coordination trait used by
Transaction::committo honourReplicaAckPolicywhen an environment is replicated. - throughput_
stats - Throughput statistics for database operations.
Structs§
- Database
Config - Configuration for a database.
- Database
Id - Unique identifier for a database.
- Database
Impl - The underlying object for a given database.
- Database
Tree - Persistent B-tree root metadata stored alongside the database record.
- DbTree
- The database directory for this environment.
- Environment
Impl - The internal representation of an environment.
- INList
- The INList is a list of in-memory INs for a given environment.
- Memory
Budget - MemoryBudget calculates available memory and tracks usage.
- Memory
Budget Stats - Snapshot of memory budget statistics.
- Memory
Overhead - Estimated object overheads in bytes (Rust equivalents of constants). These are approximate sizes used for memory accounting.
- Node
Sequence - Generates unique node IDs and transient LSNs.
- Truncate
Result - Result of a database truncate operation.
Enums§
- DbType
- The type of a database.
- DbiError
- Errors that can occur in the DBI layer.
- EnvState
- States of the environment lifecycle.
- Environment
Failure Reason - Reasons why an environment might fail and become invalid.
- GetMode
- Distinguishes which variety of get operation a cursor should use.
- Operation
- Types of operations for replication.
- Operation
Status - Status returned by cursor and database operations.
- PutMode
- Distinguishes cursor put operations.
- Search
Mode - Distinguishes cursor search operations.
Type Aliases§
- Result
- Result type for DBI operations.