pub struct SQLiteTransaction { /* private fields */ }Expand description
SQLite-backed transaction. Drops without commit roll back so panics never leak a half-applied write log.
Implementations§
Source§impl SQLiteTransaction
impl SQLiteTransaction
pub fn begin(conn: ManagedConnection) -> Result<Self, SQLiteError>
pub fn active(&self) -> bool
pub fn commit(&mut self) -> TxResult<()>
pub fn rollback(&mut self) -> TxResult<()>
pub fn savepoint(&self, name: &str) -> TxResult<()>
pub fn release_savepoint(&self, name: &str) -> TxResult<()>
pub fn rollback_to(&self, name: &str) -> TxResult<()>
Trait Implementations§
Source§impl Drop for SQLiteTransaction
impl Drop for SQLiteTransaction
Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteTransaction
impl !UnwindSafe for SQLiteTransaction
impl Freeze for SQLiteTransaction
impl Send for SQLiteTransaction
impl Sync for SQLiteTransaction
impl Unpin for SQLiteTransaction
impl UnsafeUnpin for SQLiteTransaction
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