Trait cuprate_database::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§