Skip to main content

Module database

Module database 

Source

Structs§

DBBatch
Provides a mutable struct to form a collection of database write operations, and execute them.
DBMap
An interface to a rocksDB database, keyed by a columnfamily
Database
DatabaseClose
What wait_for_database_close waits on; see Database::close_handle.
DbSnapshot
A point-in-time RocksDB snapshot of a database.
MetricConf
TaggedDBMap
A typed map sharing one column family with other typed maps, distinguished by a tag byte prefixed to every key: the big-endian fixint serialization of (tag, key) keeps each map a contiguous key range of the column family. Useful for sets of tables that are always created and dropped together — one column family instead of one per table keeps the column-family and SST-file counts low.

Enums§

StorageWriteBatch

Functions§

drop_tolerant_write_options
Write options that discard the batch entries of a column family dropped after staging, instead of failing the write; see DBBatch::write_opt.
wait_for_database_close
Waits until the database of db has been closed, every handle to it dropped and RocksDB’s files released, so its directory can be reopened, moved, or deleted. Returns false if it is still open after 30 seconds.