Struct rsfbclient::Transaction[][src]

pub struct Transaction<'c, C> where
    C: FirebirdClient
{ /* fields omitted */ }

Implementations

impl<'c, C: FirebirdClient> Transaction<'c, C>[src]

pub fn new(conn: &'c mut Connection<C>) -> 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

pub fn prepare<'t>(
    &'t mut self,
    sql: &str,
    named_params: bool
) -> Result<Statement<'c, 't, C>, FbError>
[src]

Prepare a new statement for execute

Trait Implementations

impl<'c, C: FirebirdClient> Drop for Transaction<'c, C>[src]

impl<C: FirebirdClient> Execute for Transaction<'_, 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, C: FirebirdClient> Queryable for Transaction<'c, 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, C> RefUnwindSafe for Transaction<'c, C> where
    C: RefUnwindSafe,
    <C as FirebirdClientDbOps>::DbHandle: RefUnwindSafe,
    <C as FirebirdClientSqlOps>::StmtHandle: RefUnwindSafe,
    <C as FirebirdClientSqlOps>::TrHandle: RefUnwindSafe

impl<'c, C> Send for Transaction<'c, C>

impl<'c, C> Sync for Transaction<'c, C> where
    C: Sync,
    <C as FirebirdClientDbOps>::DbHandle: Sync,
    <C as FirebirdClientSqlOps>::StmtHandle: Sync,
    <C as FirebirdClientSqlOps>::TrHandle: Sync

impl<'c, C> Unpin for Transaction<'c, C> where
    <C as FirebirdClientSqlOps>::TrHandle: Unpin

impl<'c, C> !UnwindSafe for Transaction<'c, 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>,