[][src]Struct rsfbclient::Connection

pub struct Connection { /* fields omitted */ }

A connection to a firebird database

Implementations

impl Connection[src]

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

Drop the current database

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

Close the current connection

pub fn with_transaction<T>(
    &self,
    closure: impl FnOnce(&mut Transaction) -> Result<T, FbError>
) -> Result<T, FbError>
[src]

Run a closure with a transaction, if the closure returns an error the transaction will rollback, else it will be committed

pub fn transaction(&self) -> Result<Transaction, FbError>[src]

Starts a new transaction

Trait Implementations

impl Drop for Connection[src]

Auto Trait Implementations

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.