[][src]Struct butane_core::db::Transaction

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

Database transaction.

Begin a transaction using the BackendConnection transaction method.

Implementations

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

pub fn commit(mut self: Self) -> Result<()>[src]

Commit the transaction

pub fn rollback(mut self: Self) -> Result<()>[src]

Roll back the transaction. Equivalent to dropping it.

Trait Implementations

impl ConnectionMethods for Transaction<'_>[src]

Auto Trait Implementations

impl<'c> !RefUnwindSafe for Transaction<'c>[src]

impl<'c> !Send for Transaction<'c>[src]

impl<'c> !Sync for Transaction<'c>[src]

impl<'c> Unpin for Transaction<'c>[src]

impl<'c> !UnwindSafe for Transaction<'c>[src]

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, 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.