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]
impl PreparedStatement
pub fn parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
[src]
pub fn parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
Descriptors of the parameters of the prepared statement, if any.
pub fn add_batch<T: Serialize>(&mut self, input: &T) -> HdbResult<()>
[src]
pub fn add_batch<T: Serialize>(&mut self, input: &T) -> HdbResult<()>
Converts the input into a row of parameters for the batch, if it is consistent with the metadata.
pub fn execute_batch(&mut self) -> HdbResult<HdbResponse>
[src]
pub fn execute_batch(&mut self) -> HdbResult<HdbResponse>
Executes the statement with the collected batch, and clears the batch.
pub fn set_auto_commit(&mut self, ac: bool) -> HdbResult<()>
[src]
pub fn set_auto_commit(&mut self, ac: bool) -> HdbResult<()>
Sets the auto-commit of the prepared statement's connection for future calls.
Trait Implementations
impl Debug for PreparedStatement
[src]
impl Debug for PreparedStatement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for PreparedStatement
[src]
impl Drop for PreparedStatement
Auto Trait Implementations
impl Send for PreparedStatement
impl Send for PreparedStatement
impl !Sync for PreparedStatement
impl !Sync for PreparedStatement