Struct hdbconnect::PreparedStatement
[−]
[src]
pub struct PreparedStatement { /* fields omitted */ }
Allows injection-safe SQL execution and repeated calls with different parameters with as few roundtrips as possible.
Methods
impl PreparedStatement
[src]
fn add_batch<T>(&mut self, from_row: &T) -> HdbResult<()> where T: Serialize
Adds the values from the rust-typed from_row to the batch, if it is consistent with the metadata.
fn execute_batch(&mut self) -> HdbResult<HdbResponse>
Executes the statement with the collected batch, and clears the batch.
fn set_auto_commit(&mut self, ac: bool)
Sets the prepared statement's auto-commit behavior for future calls.
Trait Implementations
impl Drop for PreparedStatement
[src]
fn drop(&mut self)
Frees all server-side ressources that belong to this prepared statement.