[−][src]Struct sqlx::Transaction
Methods
impl<T> Transaction<T> where
T: Connection + Send + 'static,
[src]
T: Connection + Send + 'static,
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> Connection for Transaction<T> where
T: Connection,
[src]
T: Connection,
fn close(
self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send>>
fn ping(&mut self) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
[src]
impl<Conn> Deref for Transaction<Conn> where
Conn: Connection,
[src]
Conn: Connection,
type Target = Conn
The resulting type after dereferencing.
fn deref(&self) -> &<Transaction<Conn> as Deref>::Target
[src]
impl<Conn> DerefMut for Transaction<Conn> where
Conn: Connection,
[src]
Conn: Connection,
fn deref_mut(&mut self) -> &mut <Transaction<Conn> as Deref>::Target
[src]
impl<Conn> Drop for Transaction<Conn> where
Conn: Connection,
[src]
Conn: Connection,
impl<T> Executor for Transaction<T> where
T: Connection,
[src]
T: Connection,
type Database = <T as Executor>::Database
fn send<'e, 'q>(
&'e mut self,
commands: &'q str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
commands: &'q str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'e + Send>> where
'q: 'e,
fn execute<'e, 'q>(
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + 'e + Send>> where
'q: 'e,
fn fetch<'e, 'q>(
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Stream<Item = Result<<<Transaction<T> as Executor>::Database as Database>::Row, Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Stream<Item = Result<<<Transaction<T> as Executor>::Database as Database>::Row, Error>> + 'e + Send>> where
'q: 'e,
fn fetch_optional<'e, 'q>(
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<Option<<<Transaction<T> as Executor>::Database as Database>::Row>, Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
query: &'q str,
args: <<Transaction<T> as Executor>::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<Option<<<Transaction<T> as Executor>::Database as Database>::Row>, Error>> + 'e + Send>> where
'q: 'e,
fn describe<'e, 'q>(
&'e mut self,
query: &'q str
) -> Pin<Box<dyn Future<Output = Result<Describe<<Transaction<T> as Executor>::Database>, Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
query: &'q str
) -> Pin<Box<dyn Future<Output = Result<Describe<<Transaction<T> as Executor>::Database>, Error>> + 'e + Send>> where
'q: 'e,
fn fetch_one<'e, 'q>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Row, Error>> + 'e + Send>> where
'q: 'e,
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Row, Error>> + 'e + Send>> where
'q: 'e,
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, DB> HasSqlType<&'_ T> for DB where
DB: HasSqlType<T>,
T: ?Sized,
[src]
DB: HasSqlType<T>,
T: ?Sized,
impl<T, DB> HasSqlType<Option<T>> for DB where
DB: HasSqlType<T>,
[src]
DB: HasSqlType<T>,
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>,