Expand description
RocksDB engine: database-wide operations and shared resources.
Engine owns the opened RocksDB instance together with the worker pool, the
shared open-time context, and the flags fixed at open (read-only, secondary,
checksums). Per-column-family reads and writes go through Map; the methods
here act on the database as a whole: WAL flush and sync, memtable flush,
manual compaction and primary catch-up, checkpoints, property queries, and
the cork counter that coalesces WAL writes (see the cork module).
Re-exportsยง
use std::collections::BTreeMap;๐use std::ffi::CStr;๐use std::path::Path;๐use std::sync::Arc;๐use std::sync::OnceLock;๐use std::sync::Weak;๐use std::sync::atomic::AtomicU32;๐use std::sync::atomic::Ordering;๐use rocksdb::AsColumnFamilyRef;๐use rocksdb::BoundColumnFamily;๐use rocksdb::DBCommon;๐use rocksdb::DBWithThreadMode;๐use rocksdb::FlushOptions;๐use rocksdb::MultiThreaded;๐use rocksdb::WaitForCompactOptions;๐use rocksdb::WriteOptions;๐use rocksdb::checkpoint::Checkpoint;๐use tuwunel_core::Err;๐use tuwunel_core::Result;๐use tuwunel_core::debug;๐use tuwunel_core::debug;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐use tuwunel_core::info;๐use tuwunel_core::info;๐use tuwunel_core::warn;๐use crate::Context;๐use crate::Map;๐use crate::pool::Pool;๐use crate::util::map_err;๐use crate::util::result;๐
Modulesยง
- backup ๐
- cf_opts ๐
- context ๐
- db_opts ๐
- descriptor ๐
- Database column descriptors
- env ๐
- events ๐
- files ๐
- logger ๐
- memory_
usage ๐ - open ๐
- repair ๐
Structsยง
- Engine
- Handle to the opened RocksDB database and its shared resources.