[−][src]Trait rsfbclient::Queryable
Implemented for types that can be used to execute sql queries
Associated Types
Loading content...Required methods
fn query_iter<P>(
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
Returns the results of the query as an iterator
Use ()
for no parameters or a tuple of parameters
Provided methods
fn query<P>(&'a mut self, sql: &str, params: P) -> Result<Vec<R>, FbError> where
P: IntoParams,
P: IntoParams,
Returns the results of the query as a Vec
Use ()
for no parameters or a tuple of parameters
fn query_first<P>(
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
Returns the first result of the query, or None
Use ()
for no parameters or a tuple of parameters
Implementors
impl<'a, R, C> Queryable<'a, R> for Connection<C> where
R: FromRow + 'a,
C: FirebirdClient + 'a,
[src]
R: FromRow + 'a,
C: FirebirdClient + 'a,
type Iter = StmtIter<'a, R, C>
fn query_iter<P>(
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
Prepare, execute, return the rows and commit the sql query
Use ()
for no parameters or a tuple of parameters
impl<'a, R, C> Queryable<'a, R> for Transaction<'a, C> where
R: FromRow + 'a,
C: FirebirdClient,
[src]
R: FromRow + 'a,
C: FirebirdClient,
type Iter = StmtIter<'a, R, C>
fn query_iter<P>(
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Self::Iter, FbError> where
P: IntoParams,
Prepare, execute and return the rows of the sql query
Use ()
for no parameters or a tuple of parameters