pub struct Transaction<'a, D: Driver> { /* private fields */ }Expand description
Wrapper around sqlx::Transaction
Will contain sql query watch data in the future (gated by a feature)
Implementations§
Trait Implementations§
Source§impl<'a, D: Debug + Driver> Debug for Transaction<'a, D>where
D::InternalDriver: Debug,
impl<'a, D: Debug + Driver> Debug for Transaction<'a, D>where
D::InternalDriver: Debug,
Source§impl<'c, D: Driver> Deref for Transaction<'c, D>
impl<'c, D: Driver> Deref for Transaction<'c, D>
Source§impl<'c, D: Driver> DerefMut for Transaction<'c, D>
impl<'c, D: Driver> DerefMut for Transaction<'c, D>
Source§impl<'c, D: Driver> EasyExecutor<D> for &mut Transaction<'c, D>
impl<'c, D: Driver> EasyExecutor<D> for &mut Transaction<'c, D>
type InternalExecutor<'b> = &'b mut <<D as Driver>::InternalDriver as Database>::Connection where Self: 'b
type IntoInternalExecutor<'b> = &'b mut <<D as Driver>::InternalDriver as Database>::Connection where Self: 'b
async fn query_setup<O: SetupSql<D> + Send + Sync>( &mut self, sql: O, ) -> Result<O::Output>
fn executor<'a>(&'a mut self) -> Self::InternalExecutor<'a>
fn into_executor<'a>(self) -> Self::IntoInternalExecutor<'a>where
Self: 'a,
Auto Trait Implementations§
impl<'a, D> Freeze for Transaction<'a, D>
impl<'a, D> !RefUnwindSafe for Transaction<'a, D>
impl<'a, D> Send for Transaction<'a, D>
impl<'a, D> Sync for Transaction<'a, D>
impl<'a, D> Unpin for Transaction<'a, D>
impl<'a, D> !UnwindSafe for Transaction<'a, D>
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