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
  • statement must be a prepared statement.
  • parameters will 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.