pub struct SQLiteMapTransaction<'a> { /* private fields */ }Expand description
Represents an active SQLite transaction for a SQLiteMap.
Most functions provided by this struct mirror the corresponding functions of the SQLiteMap struct.
The transaction is committed when the SQLiteMapTransaction is dropped.
Implementations§
Source§impl<'a> SQLiteMapTransaction<'a>
impl<'a> SQLiteMapTransaction<'a>
Sourcepub fn insert(&mut self, key: &str, value: &str) -> Result<bool, Error>
pub fn insert(&mut self, key: &str, value: &str) -> Result<bool, Error>
This function is equivalent to SQLiteMap::insert().
Sourcepub fn update(&mut self, key: &str, value: &str) -> Result<(), Error>
pub fn update(&mut self, key: &str, value: &str) -> Result<(), Error>
This function is equivalent to SQLiteMap::update().
Sourcepub fn contains(&self, key: &str) -> Result<bool, Error>
pub fn contains(&self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteMap::contains().
Sourcepub fn contains_nocase(&self, key: &str) -> Result<bool, Error>
pub fn contains_nocase(&self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteMap::contains_nocase().
Sourcepub fn get(&self, key: &str) -> Result<Option<String>, Error>
pub fn get(&self, key: &str) -> Result<Option<String>, Error>
This function is equivalent to SQLiteMap::get().
Sourcepub fn get_nocase(&self, key: &str) -> Result<Option<String>, Error>
pub fn get_nocase(&self, key: &str) -> Result<Option<String>, Error>
This function is equivalent to SQLiteMap::get_nocase().
Sourcepub fn remove(&mut self, key: &str) -> Result<bool, Error>
pub fn remove(&mut self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteMap::remove().
Sourcepub fn remove_nocase(&mut self, key: &str) -> Result<bool, Error>
pub fn remove_nocase(&mut self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteMap::remove_nocase().
Sourcepub fn for_each<F>(&self, callback: F) -> Result<(), Error>
pub fn for_each<F>(&self, callback: F) -> Result<(), Error>
This function is equivalent to SQLiteMap::for_each().
Sourcepub fn find<P>(&self, predicate: P) -> Result<Option<(String, String)>, Error>
pub fn find<P>(&self, predicate: P) -> Result<Option<(String, String)>, Error>
This function is equivalent to SQLiteMap::find().