Skip to main content

Module db_opts

Module db_opts 

Source

Re-exportsยง

use std::cmp; ๐Ÿ”’
use rocksdb::Cache; ๐Ÿ”’
use rocksdb::DBRecoveryMode; ๐Ÿ”’
use rocksdb::Env; ๐Ÿ”’
use rocksdb::LogLevel; ๐Ÿ”’
use rocksdb::Options; ๐Ÿ”’
use rocksdb::statistics::StatsLevel; ๐Ÿ”’
use tuwunel_core::Config; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::utils; ๐Ÿ”’
use super::cf_opts::cache_size_f64; ๐Ÿ”’
use super::events::Events; ๐Ÿ”’
use super::logger::handle as handle_log; ๐Ÿ”’
use crate::util::map_err; ๐Ÿ”’

Functionsยง

db_options ๐Ÿ”’
Create database-wide options suitable for opening the database. This also sets our default column options in case of opening a column with the same resulting value. Note that we require special per-column options on some columns, therefor columns should only be opened after passing this result through cf_options().
num_threads ๐Ÿ”’
set_logging_defaults ๐Ÿ”’