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: Should- paramsspecify a parameter set size of- 0, nothing is executed, and- Ok(None)is returned. See the- crate::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.
Auto Trait Implementations
impl<'open_connection> RefUnwindSafe for Prepared<'open_connection>impl<'open_connection> UnwindSafe for Prepared<'open_connection>