[][src]Struct rsfbclient::Statement

pub struct Statement<'c, 't> { /* fields omitted */ }

Implementations

impl<'c, 't> Statement<'c, 't>[src]

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

Prepare the statement that will be executed

pub fn execute<T>(&mut self, 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<T>(self, params: T) -> Result<StatementFetch<'c, 't>, FbError> where
    T: IntoParams, 
[src]

Execute the current statement and returns the lines founds

Use () for no parameters or a tuple of parameters

pub fn execute_immediate<T>(
    tr: &'t Transaction<'c>,
    sql: &str,
    params: T
) -> Result<(), FbError> where
    T: IntoParams, 
[src]

Execute the statement without returning any row

Use () for no parameters or a tuple of parameters

Trait Implementations

impl<'c, 't> Drop for Statement<'c, 't>[src]

Auto Trait Implementations

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

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

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

impl<'c, 't> Unpin for Statement<'c, 't> where
    'c: 't, 

impl<'c, 't> !UnwindSafe for Statement<'c, 't>

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.