Struct sea_orm::Transaction
source · pub struct Transaction { /* private fields */ }
Expand description
Defines a database transaction as it holds a Vec<Statement>
Implementations
sourceimpl Transaction
impl Transaction
sourcepub fn from_sql_and_values<I>(db_backend: DbBackend, sql: &str, values: I) -> Selfwhere
I: IntoIterator<Item = Value>,
pub fn from_sql_and_values<I>(db_backend: DbBackend, sql: &str, values: I) -> Selfwhere
I: IntoIterator<Item = Value>,
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
Trait Implementations
sourceimpl Clone for Transaction
impl Clone for Transaction
sourcefn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Transaction
impl Debug for Transaction
sourceimpl PartialEq<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
sourcefn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
impl StructuralPartialEq for Transaction
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more