Struct odbc_api::Prepared [−][src]
pub struct Prepared<'open_connection> { /* fields omitted */ }Expand description
A prepared query. Prepared queries are useful if the similar queries should executed more than once.
Implementations
pub fn execute(
&mut self,
params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut StatementImpl<'o>>>, Error>
pub fn execute(
&mut self,
params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut StatementImpl<'o>>>, Error>
Execute the prepared statement.
params: Used to bind these parameters before executing the statement. You can use()to represent no parameters. In regards to binding arrays of parameters: Shouldparamsspecify a parameter set size of0, nothing is executed, andOk(None)is returned. See thecrate::parametermodule level documentation for more information on how to pass parameters.
Describes parameter marker associated with a prepared SQL statement.
Parameters
parameter_number: Parameter marker number ordered sequentially in increasing parameter order, starting at 1.