[−][src]Struct odbc_api::Prepared
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 Statement<'o>>>, Error>
[src]
&mut self,
params: impl ParameterCollection
) -> Result<Option<CursorImpl<'o, &mut Statement<'o>>>, Error>
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: Shouldparams
specify a paramset size of empty, nothing is executed, andOk(None)
is returned.
pub fn describe_param(
&self,
parameter_number: u16
) -> Result<ParameterDescription, Error>
[src]
&self,
parameter_number: u16
) -> Result<ParameterDescription, Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,