[−][src]Struct sqlx_core::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>>
[src]
pub async fn commit(__arg0: Self) -> Result<T>
[src]
pub async fn rollback(__arg0: Self) -> Result<T>
[src]
Trait Implementations
impl<T> Connection for Transaction<T> where
T: Connection,
[src]
T: Connection,
fn close(self) -> BoxFuture<'static, Result<()>>
[src]
fn ping(&mut self) -> BoxFuture<Result<()>>
[src]
impl<Conn> Deref for Transaction<Conn> where
Conn: Connection,
[src]
Conn: Connection,
impl<Conn> DerefMut for Transaction<Conn> where
Conn: Connection,
[src]
Conn: Connection,
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::Database
fn send<'e, 'q: 'e>(
&'e mut self,
commands: &'q str
) -> BoxFuture<'e, Result<()>>
[src]
&'e mut self,
commands: &'q str
) -> BoxFuture<'e, Result<()>>
fn execute<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<u64>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<u64>>
fn fetch<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxStream<'e, Result<<Self::Database as Database>::Row>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxStream<'e, Result<<Self::Database as Database>::Row>>
fn fetch_optional<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<Option<<Self::Database as Database>::Row>>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<Option<<Self::Database as Database>::Row>>>
fn describe<'e, 'q: 'e>(
&'e mut self,
query: &'q str
) -> BoxFuture<'e, Result<Describe<Self::Database>>>
[src]
&'e mut self,
query: &'q str
) -> BoxFuture<'e, Result<Describe<Self::Database>>>
fn fetch_one<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<<Self::Database as Database>::Row>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<<Self::Database as Database>::Row>>
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, 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>,