Skip to main content

Module rocks

Module rocks 

Source

Re-exports§

pub use crate::database::DBBatch;
pub use crate::database::DBMap;
pub use crate::database::MetricConf;
pub use crate::database::TaggedDBMap;

Modules§

errors

Structs§

BulkIngestionOptions
RocksDB options tuned for one-shot bulk ingestion into a freshly created store, e.g. initial index building, inserting the genesis snapshot, or restoring a formal snapshot.
DBMapTableConfigMap
DBOptions
ReadWriteOptions
SstFileBuffer
Rows of one table, held in memory until Self::write_file writes them, sorted, to an SST file for DBMap::ingest_sst_files.

Functions§

available_disk_space
The free space of the file system holding path, measured at the nearest directory of it that exists, so that a directory still to be created reports the space it will get. None if it cannot be determined.
bulk_ingestion_options
check_and_mark_db_corruption
default_db_options
Creates a default RocksDB option, to be used when RocksDB option is unspecified.
disable_fallocate
Stops RocksDB from preallocating file space in databases opened afterwards with default_db_options or bulk_ingestion_options.
list_tables
open_cf_opts
Opens a database with options, and a number of column families with individual options that are created if they do not exist.
open_cf_opts_secondary
Opens a database with options, and a number of column families with individual options that are created if they do not exist.
read_size_from_env
safe_drop_db
synced_write_options
Write options for a record that must be on disk before the write returns, rather than in the operating system’s cache until some later sync.
target_file_size_base
The size, in bytes, at which compactions under DBOptions::optimize_for_write_throughput and DBOptions::optimize_for_write_throughput_no_deletion cut their output files.
unmark_db_corruption