Struct sea_orm::Transaction
source · pub struct Transaction { /* private fields */ }
Available on crate feature
mock
only.Expand description
Defines a database transaction as it holds a Vec<Statement>
Implementations§
source§impl Transaction
impl Transaction
sourcepub fn from_sql_and_values<I, T>(
db_backend: DbBackend,
sql: T,
values: I
) -> Self
pub fn from_sql_and_values<I, T>( db_backend: DbBackend, sql: T, values: I ) -> Self
Get the Values from s raw SQL statement depending on the DatabaseBackend
sourcepub fn many<I>(stmts: I) -> Selfwhere
I: IntoIterator<Item = Statement>,
pub fn many<I>(stmts: I) -> Selfwhere
I: IntoIterator<Item = Statement>,
Create a Transaction with many statements
sourcepub fn wrap<I>(stmts: I) -> Vec<Self>where
I: IntoIterator<Item = Statement>,
pub fn wrap<I>(stmts: I) -> Vec<Self>where
I: IntoIterator<Item = Statement>,
Wrap each Statement as a single-statement Transaction
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Transaction
impl Debug for Transaction
source§impl PartialEq for Transaction
impl PartialEq for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Transaction
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