fuel_core_interfaces::db

Trait DatabaseTransaction

Source
pub trait DatabaseTransaction<Database>:
    Transactional
    + Debug
    + Send
    + Sync {
    // Required methods
    fn database(&self) -> &Database;
    fn database_mut(&mut self) -> &mut Database;
}
Expand description

The database transaction for the Database type.

Required Methods§

Source

fn database(&self) -> &Database

Returns the reference to the Database instance.

Source

fn database_mut(&mut self) -> &mut Database

Returns the mutable reference to the Database instance.

Implementors§