Skip to main content

Crate noxu_dbi

Crate noxu_dbi 

Source
Expand description

Internal component of the noxu database.

This crate is published only so the noxu umbrella crate can depend on it. Use noxu (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 replica_ack::SharedReplicaAckCoordinator;
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::commit to honour ReplicaAckPolicy when an environment is replicated.
throughput_stats
Throughput statistics for database operations.

Structs§

DatabaseConfig
Configuration for a database.
DatabaseId
Unique identifier for a database.
DatabaseImpl
The underlying object for a given database.
DatabaseTree
Persistent B-tree root metadata stored alongside the database record.
DbTree
The database directory for this environment.
EnvironmentImpl
The internal representation of an environment.
INList
The INList is a list of in-memory INs for a given environment.
MemoryBudget
MemoryBudget calculates available memory and tracks usage.
MemoryBudgetStats
Snapshot of memory budget statistics.
MemoryOverhead
Estimated object overheads in bytes (Rust equivalents of constants). These are approximate sizes used for memory accounting.
NodeSequence
Generates unique node IDs and transient LSNs.
TruncateResult
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.
EnvironmentFailureReason
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.
OperationStatus
Status returned by cursor and database operations.
PutMode
Distinguishes cursor put operations.
SearchMode
Distinguishes cursor search operations.

Type Aliases§

Result
Result type for DBI operations.