Crate thunderdb

Crate thunderdb 

Source
Expand description

Summary: thunder - A minimal, embedded, transactional key-value database engine. Copyright (c) YOAB. All rights reserved.

Re-exports§

pub use aligned::AlignedBuffer;
pub use aligned::AlignedBufferPool;
pub use aligned::DEFAULT_ALIGNMENT;
pub use arena::Arena;
pub use arena::DEFAULT_ARENA_SIZE;
pub use arena::TypedArena;
pub use btree::BTreeIter;
pub use btree::BTreeRangeIter;
pub use btree::Bound;
pub use bucket::BucketBound;
pub use bucket::BucketIter;
pub use bucket::BucketMut;
pub use bucket::BucketRangeIter;
pub use bucket::BucketRef;
pub use bucket::MAX_BUCKET_NAME_LEN;
pub use bucket::MAX_NESTING_DEPTH;
pub use bucket::NestedBucketIter;
pub use bucket::NestedBucketRef;
pub use checkpoint::CheckpointConfig;
pub use checkpoint::CheckpointInfo;
pub use checkpoint::CheckpointManager;
pub use concurrent::PARALLEL_THRESHOLD;
pub use concurrent::ParallelWriteStats;
pub use concurrent::prepare_entries_parallel;
pub use db::Database;
pub use db::DatabaseOptions;
pub use error::Error;
pub use error::Result;
pub use group_commit::GroupCommitConfig;
pub use group_commit::GroupCommitManager;
pub use io_backend::IoBackend;
pub use io_backend::ReadOp;
pub use io_backend::ReadResult;
pub use io_backend::SyncBackend;
pub use io_backend::WriteOp;
pub use iter::IterOptions;
pub use iter::MetricsIter;
pub use iter::PrefetchIter;
pub use iter::ScanMetrics;
pub use mmap::AccessPattern;
pub use mmap::Mmap;
pub use mmap::MmapOptions;
pub use node_pool::DEFAULT_MAX_POOLED;
pub use node_pool::NodePool;
pub use node_pool::PoolStats;
pub use node_pool::PooledBranchNode;
pub use node_pool::PooledLeafNode;
pub use overflow::DEFAULT_OVERFLOW_THRESHOLD;
pub use overflow::OverflowRef;
pub use page::PageSizeConfig;
pub use parallel::ParallelConfig;
pub use parallel::ParallelWriter;
pub use parallel::partition_for_parallel;
pub use snapshot::Snapshot;
pub use snapshot::SnapshotId;
pub use snapshot::SnapshotManager;
pub use snapshot::SnapshotStats;
pub use tx::ReadTx;
pub use tx::WriteTx;
pub use value::BorrowedValue;
pub use value::MaybeOwnedValue;
pub use value::OwnedValue;
pub use wal::Lsn;
pub use wal::SyncPolicy;
pub use wal::Wal;
pub use wal::WalConfig;
pub use wal_record::RECORD_HEADER_SIZE;
pub use wal_record::WalRecord;

Modules§

aligned
Summary: Aligned memory allocation for direct I/O (O_DIRECT). Copyright (c) YOAB. All rights reserved.
arena
Summary: Bump allocator for transaction-scoped memory. Copyright (c) YOAB. All rights reserved.
bloom
Summary: Bloom filter for probabilistic set membership. Copyright (c) YOAB. All rights reserved.
btree
Summary: B+ tree implementation for the thunder database. Copyright (c) YOAB. All rights reserved.
bucket
Summary: Bucket implementation for namespaced key-value storage. Copyright (c) YOAB. All rights reserved.
checkpoint
Summary: Periodic checkpointing for bounded recovery time. Copyright (c) YOAB. All rights reserved.
coalescer
Summary: Write coalescing for efficient batched I/O. Copyright (c) YOAB. All rights reserved.
concurrent
Summary: Concurrent write transaction support using rayon for parallel processing. Copyright (c) YOAB. All rights reserved.
db
Summary: Database open/close and core management logic. Copyright (c) YOAB. All rights reserved.
error
Summary: Error types for the thunder database engine. Copyright (c) YOAB. All rights reserved.
freelist
Summary: Page allocation and free page tracking. Copyright (c) YOAB. All rights reserved.
group_commit
Summary: Batched transaction commit for high throughput. Copyright (c) YOAB. All rights reserved.
io_backend
Summary: I/O backend abstraction layer for flexible write strategies. Copyright (c) YOAB. All rights reserved.
iter
Summary: Iterator configuration and scan metrics for Phase 2 read dominance. Copyright (c) YOAB. All rights reserved.
ivec
Summary: Inline vector for efficient key-value storage (inspired by sled’s IVec). Copyright (c) YOAB. All rights reserved.
meta
Summary: Meta page handling for crash recovery and database state. Copyright (c) YOAB. All rights reserved.
mmap
Summary: Memory-mapped file I/O for efficient page access. Copyright (c) YOAB. All rights reserved.
node_pool
Summary: Object pool for B+ tree nodes. Copyright (c) YOAB. All rights reserved.
overflow
Summary: Overflow page management for large values. Copyright (c) YOAB. All rights reserved.
page
Summary: Page layout, encoding, and helper utilities. Copyright (c) YOAB. All rights reserved.
parallel
Summary: Parallel I/O coordination for high-throughput writes. Copyright (c) YOAB. All rights reserved.
snapshot
Summary: Snapshot isolation for Phase 2 read dominance. Copyright (c) YOAB. All rights reserved.
tx
Summary: Read and write transaction types. Copyright (c) YOAB. All rights reserved.
value
Summary: Zero-copy value types for Phase 2 read dominance. Copyright (c) YOAB. All rights reserved.
wal
Summary: Write-ahead logging for transaction durability. Copyright (c) YOAB. All rights reserved.
wal_record
Summary: WAL record types and serialization with CRC32 checksums. Copyright (c) YOAB. All rights reserved.