[−][src]Struct sqlx::Transaction
Methods
impl<T> Transaction<T> where
T: Connection,
[src]
T: Connection,
pub async fn begin(__arg0: Self) -> Result<Transaction<T>, Error>
[src]
pub async fn commit(__arg0: Self) -> Result<T, Error>
[src]
pub async fn rollback(__arg0: Self) -> Result<T, Error>
[src]
Trait Implementations
impl<T> Deref for Transaction<T> where
T: Connection,
[src]
T: Connection,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &<Transaction<T> as Deref>::Target
[src]
impl<T> DerefMut for Transaction<T> where
T: Connection,
[src]
T: Connection,
fn deref_mut(&mut self) -> &mut <Transaction<T> as Deref>::Target
[src]
impl<T> Drop for Transaction<T> where
T: Connection,
[src]
T: Connection,
impl<'c, DB, T> Executor for &'c mut Transaction<T> where
DB: Database,
T: Connection<Database = DB>,
[src]
DB: Database,
T: Connection<Database = DB>,
type Database = <T as Executor>::Database
The specific database that this type is implemented for.
fn execute<'e, 'q, 't, E>(
&'t mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
't: 'e,
E: 'e + Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
[src]
&'t mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
't: 'e,
E: 'e + Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
fn fetch<'q, E>(
&'e mut self,
query: E
) -> <<&'c mut Transaction<T> as Executor>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
[src]
&'e mut self,
query: E
) -> <<&'c mut Transaction<T> as Executor>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
fn describe<'e, 'q, E>(
&'e mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Describe<<&'c mut Transaction<T> as Executor>::Database>, Error>> + 'e + Send>> where
E: 'e + Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
[src]
&'e mut self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Describe<<&'c mut Transaction<T> as Executor>::Database>, Error>> + 'e + Send>> where
E: 'e + Execute<'q, <&'c mut Transaction<T> as Executor>::Database>,
impl<'e, DB, T> RefExecutor<'e> for &'e mut Transaction<T> where
DB: Database,
T: Connection<Database = DB>,
[src]
DB: Database,
T: Connection<Database = DB>,
type Database = DB
fn fetch_by_ref<'q, E>(
self,
query: E
) -> <<&'e mut Transaction<T> as RefExecutor<'e>>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <&'e mut Transaction<T> as RefExecutor<'e>>::Database>,
[src]
self,
query: E
) -> <<&'e mut Transaction<T> as RefExecutor<'e>>::Database as HasCursor<'e, 'q>>::Cursor where
E: Execute<'q, <&'e mut Transaction<T> as RefExecutor<'e>>::Database>,
Auto Trait Implementations
impl<T> RefUnwindSafe for Transaction<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Transaction<T>
impl<T> Sync for Transaction<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Transaction<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Transaction<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,