Struct rsfbclient::SimpleTransaction[][src]

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

A transaction API without client types

Implementations

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

pub fn new(conn: &'c mut SimpleConnection) -> Result<Self, FbError>[src]

Start a new transaction

pub fn commit(self) -> Result<(), FbError>[src]

Commit the current transaction changes

pub fn commit_retaining(&mut self) -> Result<(), FbError>[src]

Commit the current transaction changes, but allowing to reuse the transaction

pub fn rollback_retaining(&mut self) -> Result<(), FbError>[src]

Rollback the current transaction changes, but allowing to reuse the transaction

pub fn rollback(self) -> Result<(), FbError>[src]

Rollback the current transaction changes

pub fn execute_immediate(&mut self, sql: &str) -> Result<(), FbError>[src]

Execute the statement without returning any row

Trait Implementations

impl<'c> Execute for SimpleTransaction<'c>[src]

impl<'c> From<Transaction<'c, NativeFbClient<DynLink>>> for SimpleTransaction<'c>[src]

impl<'c> From<Transaction<'c, NativeFbClient<DynLoad>>> for SimpleTransaction<'c>[src]

impl<'c> From<Transaction<'c, RustFbClient>> for SimpleTransaction<'c>[src]

impl<'c> Queryable for SimpleTransaction<'c>[src]

impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, NativeFbClient<DynLink>>[src]

type Error = FbError

The type returned in the event of a conversion error.

impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, NativeFbClient<DynLoad>>[src]

type Error = FbError

The type returned in the event of a conversion error.

impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, RustFbClient>[src]

type Error = FbError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'c> !RefUnwindSafe for SimpleTransaction<'c>

impl<'c> Send for SimpleTransaction<'c>

impl<'c> !Sync for SimpleTransaction<'c>

impl<'c> Unpin for SimpleTransaction<'c>

impl<'c> !UnwindSafe for SimpleTransaction<'c>

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