Expand description
The main database trait, allowing Tetcore to store data persistently.
Modules§
Structs§
- MemDb
- This implements
Databaseas an in-memory hash map.commitis 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.
- Change
Ref - An alteration to the database that references the data.
Traits§
Functions§
- as_
database - Wrap RocksDb database into a trait object that implements
tetcore_database::Database - with_
get - Call
fwith the value previously stored againstkeyand return the result, orNoneifkeyis not currently in the database. - with_
lookup - Call
fwith the preimage stored forhashand return the result, orNoneif no preimage is currently stored.
Type Aliases§
- Column
Id - An identifier for a column.