pub struct Statement<'l> { /* private fields */ }
Expand description

A prepared statement.

Implementations

Bind a value to a parameter.

The leftmost parameter has the index 1.

Return the number of columns.

Return the type of a column.

The type is revealed after the first step has been taken.

Return the name of a column.

Return column names.

Advance to the next state.

The function should be called multiple times until State::Done is reached in order to evaluate the statement entirely.

Read a value from a column.

The leftmost column has the index 0.

Reset the statement.

Upgrade to a cursor.

Return the raw pointer.

Trait Implementations

Executes the destructor for this type. Read more

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.