[−][src]Struct hdbconnect::PreparedStatement
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 all parameters of the prepared statement (in, out, inout), if any.
pub fn input_parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
[src]
pub fn input_parameter_descriptors(&self) -> Option<&Vec<ParameterDescriptor>>
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]
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 add_row_to_batch(&mut self, row: Vec<HdbValue>) -> HdbResult<()>
[src]
pub fn add_row_to_batch(&mut self, row: Vec<HdbValue>) -> HdbResult<()>
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]
pub fn execute_batch(&mut self) -> HdbResult<HdbResponse>
Executes the statement with the collected batch, and clears the batch.
Trait Implementations
impl Drop for PreparedStatement
[src]
impl Drop for PreparedStatement
impl Debug for PreparedStatement
[src]
impl Debug for PreparedStatement
Auto Trait Implementations
impl Send for PreparedStatement
impl Send for PreparedStatement
impl !Sync for PreparedStatement
impl !Sync for PreparedStatement
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self