Struct hdbconnect::PreparedStatement
[−]
[src]
pub struct PreparedStatement { /* fields omitted */ }
Allows injection-safe SQL execution and repeated calls of the same statement with different parameters with as few roundtrips as possible.
Methods
impl PreparedStatement
[src]
fn parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
[src]
Descriptors of the parameters of the prepared statement, if any.
fn add_batch<T: Serialize>(&mut self, input: &T) -> HdbResult<()>
[src]
Converts the input into a row of parameters for the batch, if it is consistent with the metadata.
fn execute_batch(&mut self) -> HdbResult<HdbResponse>
[src]
Executes the statement with the collected batch, and clears the batch.
fn set_auto_commit(&mut self, ac: bool)
[src]
Sets the prepared statement's auto-commit behavior for future calls.