pub struct SQLiteSetTransaction<'a> { /* private fields */ }Expand description
Represents an active SQLite transaction for a SQLiteSet.
Most functions provided by this struct mirror the corresponding functions of the SQLiteSet struct.
The transaction is committed when the SQLiteSetTransaction is dropped.
Implementations§
Source§impl<'a> SQLiteSetTransaction<'a>
impl<'a> SQLiteSetTransaction<'a>
Sourcepub fn insert(&mut self, key: &str) -> Result<bool, Error>
pub fn insert(&mut self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteSet::insert().
Sourcepub fn contains(&self, key: &str) -> Result<bool, Error>
pub fn contains(&self, key: &str) -> Result<bool, Error>
This function is equivalent to SQLiteSet::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 SQLiteSet::contains_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 SQLiteSet::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 SQLiteSet::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 SQLiteSet::for_each().
Sourcepub fn find<P>(&self, predicate: P) -> Result<Option<String>, Error>
pub fn find<P>(&self, predicate: P) -> Result<Option<String>, Error>
This function is equivalent to SQLiteSet::find().
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SQLiteSetTransaction<'a>
impl<'a> !Send for SQLiteSetTransaction<'a>
impl<'a> !Sync for SQLiteSetTransaction<'a>
impl<'a> !UnwindSafe for SQLiteSetTransaction<'a>
impl<'a> Freeze for SQLiteSetTransaction<'a>
impl<'a> Unpin for SQLiteSetTransaction<'a>
impl<'a> UnsafeUnpin for SQLiteSetTransaction<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more