pub struct Prebound<'open_connection, Parameters> { /* private fields */ }Expand description
A prepared statement with prebound parameters.
Helps you avoid (potentially costly) ODBC function calls than repeatedly executing the same
prepared query with different parameters. Using this instead of crate::Prepared::execute
directly results in the parameter buffers only to be bound once and modified between calls,
instead of new buffers bound.
Implementations
Safety
statementmust be a prepared statement.parameterswill be bound to statement. Must not be invalidated by moving. Nor should any operations which can be performed through a mutable reference be able to invalidate the bindings.
Execute the prepared statement
Provides write access to the bound parameters. Used to change arguments betwenn statement executions.