Trait rsfbclient::Execute[][src]

pub trait Execute {
    fn execute<P>(&mut self, sql: &str, params: P) -> Result<(), FbError>
    where
        P: IntoParams
;
fn execute_returnable<P, R>(
        &mut self,
        sql: &str,
        params: P
    ) -> Result<R, FbError>
    where
        P: IntoParams,
        R: FromRow + 'static
; }

Implemented for types that can be used to execute sql statements

Required methods

fn execute<P>(&mut self, sql: &str, params: P) -> Result<(), FbError> where
    P: IntoParams
[src]

Execute a query, may or may not commit the changes

possible values for argument params:

(): no parameters,

(param0, param1, param2...): a tuple of IntoParam values corresponding to positional ? sql parameters

A struct for which IntoParams has been derived (see there for details)

fn execute_returnable<P, R>(
    &mut self,
    sql: &str,
    params: P
) -> Result<R, FbError> where
    P: IntoParams,
    R: FromRow + 'static, 
[src]

Execute a query that will return data, like the 'insert ... returning ..' or 'execute procedure'.

This method is designated for use in cases when you don't have a cursor to fetch. This link explain the Firebird behavior for this cases.

Use () for no parameters or a tuple of parameters

Loading content...

Implementors

impl Execute for SimpleConnection[src]

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

impl<C> Execute for Connection<C> where
    C: FirebirdClient
[src]

impl<C: FirebirdClient> Execute for Transaction<'_, C>[src]

Loading content...