Expand description
The main database trait, allowing Substrate to store data persistently.
Modules§
Structs§
- MemDb
- This implements
Database
as an in-memory hash map.commit
is not atomic. - Transaction
- A series of changes to the database that can be committed atomically. They do not take effect
until passed into
Database::commit
.
Enums§
- Change
- An alteration to the database.
Traits§
Functions§
- as_
database - Wrap RocksDb database into a trait object that implements
sp_database::Database
- with_
get - Call
f
with the value previously stored againstkey
and return the result, orNone
ifkey
is not currently in the database.
Type Aliases§
- Column
Id - An identifier for a column.