Trait ord_lmdb_zero::traits::CreateCursor
source · [−]pub trait CreateCursor<'txn> {
fn cursor<'db, DB>(&self, db: DB) -> Result<Cursor<'txn, 'db>>
where
DB: Into<Supercow<'db, Database<'db>>>;
}
Expand description
Types of transaction references which can be used to construct Cursor
s.
In most cases this is simply used as an extension trait (see the examples
on Cursor
). However, it can also be used to abstract over things that can
be used to create Cursor
s if so desired.
Implementations are provided for references to the three general
transaction types, as well as Rc
and Arc
directly wrapping either
concrete transaction type with a 'static
lifetime.