Trait sanakirja::Transaction [] [src]

pub trait Transaction: SkipList {
    fn iter<'a, K: Representable, V: Representable>(&'a self,
                                                    db: &'a Db<K, V>,
                                                    key: Option<K>,
                                                    value: Option<V>)
                                                    -> Cursor<'a, Self, K, V> { ... } fn root<K: Representable, V: Representable>(&mut self,
                                                root: usize)
                                                -> Option<Db<K, V>> { ... } fn get<'a, K: Representable, V: Representable>(&'a self,
                                                   root: &Db<K, V>,
                                                   key: K,
                                                   value: Option<V>)
                                                   -> Option<V> { ... } }

Trait for operations common to mutable and immutable transactions.

Provided Methods

Iterate over a database, starting at the first value larger than or equal to (key, value) (and at the smallest key, or smallest value if one or both of them is None).

Gets the specified root. At most 508 different roots are allowed.

Get the smallest value associated to key, or returns the given binding if value is Some(..) and is associated to key in the given database.

Implementors