Skip to main content

Crate slatedb

Crate slatedb 

Source

Re-exports§

pub use cached_object_store::stats as cached_object_store_stats;
pub use compactor::CompactorBuilder;
pub use config::Settings;
pub use config::SstBlockSize;
pub use db_cache::stats as db_cache_stats;
pub use bytes;
pub use fail_parallel;
pub use object_store;

Modules§

admin
cached_object_store
clock
This module contains utility methods and structs for handling time.
compactor
Compactor Orchestration and Naming Overview
config
Configuration options for SlateDB.
db_cache
DB Cache
db_stats
garbage_collector_stats
manifest
seq_tracker
size_tiered_compaction

Structs§

BlockStats
Per-block statistics.
Checkpoint
CheckpointCreateResult
Db
DbBuilder
A builder for creating a new Db instance.
DbIterator
DbRand
A shareable, lock-free random number generator (RNG).
DbReader
Read-only interface for accessing a database from either the latest persistent state or from an arbitrary checkpoint.
DbReaderBuilder
Builder for creating new DbReader instances.
DbSnapshot
DbStatus
Current status of the database, exposed via crate::Db::subscribe.
DbTransaction
A database transaction that provides atomic read-write operations with configurable isolation levels. This is the main interface for transactional operations in SlateDB.
Error
Represents a public error that can be returned to the user.
GarbageCollectorBuilder
Builder for creating new GarbageCollector instances.
KeyValue
Represents a key-value pair known not to be a tombstone.
RowEntry
Represents a key-value pair that may be a tombstone.
SstFile
A single compacted SST file with accessors for metadata, stats, and index.
SstFileMetadata
Represents the metadata of an SST file in the compacted directory.
SstReader
Opens compacted SST files for read-only inspection.
SstStats
Per-SST statistics collected during SST building.
WalFile
Represents a single WAL file stored in object storage and provides methods to inspect and read its contents.
WalFileIterator
Iterator over entries in a WAL file.
WalFileMetadata
WalReader
Reads WAL files in object storage for a specific database.
WriteBatch
A batch of write operations (puts and/or deletes). All operations in the batch are applied atomically to the database. If multiple operations appear for a a single key, the last operation will be applied. The others will be dropped.
WriteHandle
Handle returned from write operations, containing metadata about the write. This structure is designed to be extensible for future enhancements.

Enums§

CloseReason
Represents the reason that a database instance has been closed.
ErrorKind
Represents the kind of public errors that can be returned to the user.
IsolationLevel
Isolation level for database transactions.
IterationOrder
MergeOperatorError
ValueDeletable
Represents a value for a key.

Traits§

BlockTransformer
Trait for transforming block data before storage and after retrieval.
DbRead
Trait for read-only database operations.
MergeOperator
A trait for implementing custom merge operations in SlateDB.