[][src]Struct rsfbclient::Statement

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

Implementations

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

pub fn prepare(tr: &mut Transaction<'c, C>, sql: &str) -> Result<Self, FbError>[src]

Prepare the statement that will be executed

pub fn execute<T>(
    &mut self,
    tr: &mut Transaction<'_, C>,
    params: T
) -> Result<(), FbError> where
    T: IntoParams
[src]

Execute the current statement without returnig any row

Use () for no parameters or a tuple of parameters

pub fn query<'s, R, P>(
    &'s mut self,
    tr: &'s mut Transaction<'_, C>,
    params: P
) -> Result<StatementFetch<'s, R, C>, FbError> where
    R: FromRow,
    P: IntoParams
[src]

Execute the current statement and returns the lines founds

Use () for no parameters or a tuple of parameters

Trait Implementations

impl<C, '_> Drop for Statement<'_, C> where
    C: FirebirdClient
[src]

Auto Trait Implementations

impl<'c, C> !RefUnwindSafe for Statement<'c, C>

impl<'c, C> !Send for Statement<'c, C>

impl<'c, C> !Sync for Statement<'c, C>

impl<'c, C> Unpin for Statement<'c, C> where
    <C as FirebirdClient>::StmtHandle: Unpin

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