[][src]Struct quaint::connector::Transaction

pub struct Transaction<'a> { /* fields omitted */ }

A representation of an SQL database transaction. If not commited, a transaction will be rolled back by default when dropped.

Currently does not support nesting, so starting a new transaction using the transaction object will panic.

Methods

impl<'a> Transaction<'a>[src]

pub async fn commit<'_>(&'_ self) -> Result<()>[src]

Commit the changes to the database and consume the transaction.

pub async fn rollback<'_>(&'_ self) -> Result<()>[src]

Rolls back the changes to the database.

Trait Implementations

impl<'a> Queryable for Transaction<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Transaction<'a>

impl<'a> Send for Transaction<'a>

impl<'a> Sync for Transaction<'a>

impl<'a> Unpin for Transaction<'a>

impl<'a> !UnwindSafe for Transaction<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,