cuprate_database

Trait TxRo

Source
pub trait TxRo<'tx> {
    // Required method
    fn commit(self) -> Result<(), RuntimeError>;
}
Expand description

Read-only database transaction.

Returned from EnvInner::tx_ro.

§Commit

It’s recommended but may not be necessary to call TxRo::commit in certain cases:

Required Methods§

Source

fn commit(self) -> Result<(), RuntimeError>

Commit the read-only transaction.

§Errors

This operation will always return Ok(()) with the redb backend.

Implementations on Foreign Types§

Source§

impl TxRo<'_> for RoTxn<'_>

Source§

impl TxRo<'_> for RefCell<RwTxn<'_>>

Implementors§