pub struct InteractiveTransaction<E> { /* private fields */ }Expand description
Interactive transaction for step-by-step operations.
Implementations§
Source§impl<E> InteractiveTransaction<E>
impl<E> InteractiveTransaction<E>
Sourcepub fn with_config(engine: E, config: TransactionConfig) -> Self
pub fn with_config(engine: E, config: TransactionConfig) -> Self
Create with configuration.
Sourcepub fn is_started(&self) -> bool
pub fn is_started(&self) -> bool
Check if the transaction has started.
Sourcepub fn commit_sql(&self) -> &'static str
pub fn commit_sql(&self) -> &'static str
Get the COMMIT SQL.
Sourcepub fn rollback_sql(&self) -> &'static str
pub fn rollback_sql(&self) -> &'static str
Get the ROLLBACK SQL.
Sourcepub fn savepoint_sql(&mut self, name: Option<&str>) -> String
pub fn savepoint_sql(&mut self, name: Option<&str>) -> String
Get the SAVEPOINT SQL.
Sourcepub fn rollback_to_sql(&self, name: &str) -> String
pub fn rollback_to_sql(&self, name: &str) -> String
Get the ROLLBACK TO SAVEPOINT SQL.
Sourcepub fn release_savepoint_sql(&self, name: &str) -> String
pub fn release_savepoint_sql(&self, name: &str) -> String
Get the RELEASE SAVEPOINT SQL.
Sourcepub fn mark_started(&mut self)
pub fn mark_started(&mut self)
Mark as started.
Auto Trait Implementations§
impl<E> Freeze for InteractiveTransaction<E>where
E: Freeze,
impl<E> RefUnwindSafe for InteractiveTransaction<E>where
E: RefUnwindSafe,
impl<E> Send for InteractiveTransaction<E>where
E: Send,
impl<E> Sync for InteractiveTransaction<E>where
E: Sync,
impl<E> Unpin for InteractiveTransaction<E>where
E: Unpin,
impl<E> UnwindSafe for InteractiveTransaction<E>where
E: UnwindSafe,
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