[][src]Struct hdbconnect::PreparedStatement

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]

pub fn parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
[src]

Descriptors of all parameters of the prepared statement (in, out, inout), if any.

pub fn input_parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
[src]

Descriptors of the input (in and inout) parameters of the prepared statement, if any.

pub 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.

pub fn add_row_to_batch(&mut self, row: Vec<HdbValue>) -> HdbResult<()>
[src]

Consumes the input as a row of parameters for the batch.

Useful mainly for generic code. In most cases add_batch() is more convenient.

pub fn execute_batch(&mut self) -> HdbResult<HdbResponse>
[src]

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

Trait Implementations

impl Drop for PreparedStatement
[src]

fn drop(&mut self)
[src]

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

impl Debug for PreparedStatement
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self