pub struct Transaction { /* private fields */ }Expand description
Transaction builder for multiple operations
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn add(
&mut self,
sql: impl Into<String>,
params: impl ToDbParams,
) -> &mut Self
pub fn add( &mut self, sql: impl Into<String>, params: impl ToDbParams, ) -> &mut Self
Add an operation to the transaction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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