pub struct DBTransaction<'a, S: Storage + 'a> { /* private fields */ }Implementations§
Source§impl<S: Storage> DBTransaction<'_, S>
impl<S: Storage> DBTransaction<'_, S>
pub fn run<T: AsRef<str>>( &mut self, sql: T, ) -> Result<TransactionIter<'_>, DatabaseError>
pub fn prepare<T: AsRef<str>>(&self, sql: T) -> Result<Statement, DatabaseError>
pub fn execute<A: AsRef<[(&'static str, DataValue)]>>( &mut self, statement: &Statement, params: A, ) -> Result<TransactionIter<'_>, DatabaseError>
pub fn commit(self) -> Result<(), DatabaseError>
Auto Trait Implementations§
impl<'a, S> Freeze for DBTransaction<'a, S>
impl<'a, S> !RefUnwindSafe for DBTransaction<'a, S>
impl<'a, S> !Send for DBTransaction<'a, S>
impl<'a, S> Sync for DBTransaction<'a, S>
impl<'a, S> Unpin for DBTransaction<'a, S>
impl<'a, S> !UnwindSafe for DBTransaction<'a, S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more