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
impl<'o> Prepared<'o>
[src]
impl<'o> Prepared<'o>
[src]pub fn execute(
&mut self,
params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut StatementImpl<'o>>>, Error>
[src]
pub fn execute(
&mut self,
params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut StatementImpl<'o>>>, Error>
[src]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: Shouldparams
specify a parameter set size of0
, nothing is executed, andOk(None)
is returned. See thecrate::parameter
module level documentation for more information on how to pass parameters.
pub fn describe_param(
&self,
parameter_number: u16
) -> Result<ParameterDescription, Error>
[src]
pub fn describe_param(
&self,
parameter_number: u16
) -> Result<ParameterDescription, Error>
[src]Describes parameter marker associated with a prepared SQL statement.
Parameters
parameter_number
: Parameter marker number ordered sequentially in increasing parameter order, starting at 1.