pub struct SqliteTransactionManager;Expand description
Implementation of TransactionManager for SQLite.
Trait Implementations§
Source§impl TransactionManager for SqliteTransactionManager
impl TransactionManager for SqliteTransactionManager
type Database = Sqlite
Source§async fn begin(
conn: &mut SqliteConnection,
statement: Option<SqlStr>,
) -> Result<(), Error>
async fn begin( conn: &mut SqliteConnection, statement: Option<SqlStr>, ) -> Result<(), Error>
Begin a new transaction or establish a savepoint within the active transaction. Read more
Source§fn commit(
conn: &mut SqliteConnection,
) -> impl Future<Output = Result<(), Error>> + Send
fn commit( conn: &mut SqliteConnection, ) -> impl Future<Output = Result<(), Error>> + Send
Commit the active transaction or release the most recent savepoint.
Source§fn rollback(
conn: &mut SqliteConnection,
) -> impl Future<Output = Result<(), Error>> + Send
fn rollback( conn: &mut SqliteConnection, ) -> impl Future<Output = Result<(), Error>> + Send
Abort the active transaction or restore from the most recent savepoint.
Source§fn start_rollback(conn: &mut SqliteConnection)
fn start_rollback(conn: &mut SqliteConnection)
Starts to abort the active transaction or restore from the most recent snapshot.
Source§fn get_transaction_depth(conn: &SqliteConnection) -> usize
fn get_transaction_depth(conn: &SqliteConnection) -> usize
Returns the current transaction depth. Read more
Auto Trait Implementations§
impl Freeze for SqliteTransactionManager
impl RefUnwindSafe for SqliteTransactionManager
impl Send for SqliteTransactionManager
impl Sync for SqliteTransactionManager
impl Unpin for SqliteTransactionManager
impl UnsafeUnpin for SqliteTransactionManager
impl UnwindSafe for SqliteTransactionManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more