pub struct PreparedStatement { /* private fields */ }
Expand description

Allows injection-safe SQL execution and repeated calls of the same statement with different parameters with as few roundtrips as possible.

Implementations§

Descriptors of the parameters of the prepared statement, if any.

Converts the input into a row of parameters for the batch, if it is consistent with the metadata.

Executes the statement with the collected batch, and clears the batch.

Sets the auto-commit of the prepared statement’s connection for future calls.

Trait Implementations§

Formats the value using the given formatter. Read more

Frees all server-side ressources that belong to this prepared statement.

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.

Should always be Self
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.