Crate sp_database
source ·Expand description
The main database trait, allowing Substrate to store data persistently.
Modules§
Structs§
- This implements
Databaseas an in-memory hash map.commitis 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.
Traits§
Functions§
- Wrap RocksDb database into a trait object that implements
sp_database::Database - Call
fwith the value previously stored againstkeyand return the result, orNoneifkeyis not currently in the database.
Type Aliases§
- An identifier for a column.