Crate sp_database
source · [−]Expand description
The main database trait, allowing Substrate to store data persistently.
Modules
Structs
This implements Database
as an in-memory hash map. commit
is not atomic.
A series of changes to the database that can be committed atomically. They do not take effect
until passed into Database::commit
.
Enums
An alteration to the database.
An alteration to the database that references the data.
Traits
Functions
Wrap RocksDb database into a trait object that implements sp_database::Database
Call f
with the value previously stored against key
and return the result, or None
if
key
is not currently in the database.
Call f
with the preimage stored for hash
and return the result, or None
if no preimage
is currently stored.
Type Definitions
An identifier for a column.