Struct odbc_api::Prepared[][src]

pub struct Prepared<'open_connection> { /* fields omitted */ }

A prepared query. Prepared queries are useful if the similar queries should executed more than once.

Implementations

impl<'o> Prepared<'o>[src]

pub fn execute(
    &mut self,
    params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut StatementImpl<'o>>>, Error>
[src]

Execute the prepared statement.

  • params: Used to bind these parameters before executing the statement. You can use () to represent no parameters. In regards to binding arrays of parameters: Should params specify a paramset size of empty, nothing is executed, and Ok(None) is returned. See the crate::parameter module level documentation for more information on how to pass parameters.

pub fn describe_param(
    &self,
    parameter_number: u16
) -> Result<ParameterDescription, Error>
[src]

Describes parameter marker associated with a prepared SQL statement.

Paramters

  • parameter_number: Parameter marker number ordered sequentially in increasing parameter order, starting at 1.

Auto Trait Implementations

impl<'open_connection> RefUnwindSafe for Prepared<'open_connection>

impl<'open_connection> !Send for Prepared<'open_connection>

impl<'open_connection> !Sync for Prepared<'open_connection>

impl<'open_connection> Unpin for Prepared<'open_connection>

impl<'open_connection> UnwindSafe for Prepared<'open_connection>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.