[−][src]Struct odbc_api::Connection
The connection handle references storage of all information about the connection to the data source, including status, transaction state, and error information.
Implementations
impl<'c> Connection<'c>
[src]
pub fn exec_direct_utf16(
&mut self,
query: &U16Str
) -> Result<Option<Cursor<'_>>, Error>
[src]
&mut self,
query: &U16Str
) -> Result<Option<Cursor<'_>>, Error>
Executes a preparable statement, using the current values of the parameter marker variables if any parameters exist in the statement. This is the fastest way to submit an SQL statement for one-time execution.
Return
Returns Some
if a cursor is created. If None
is returned no cursor has been created (
e.g. the query came back empty). Note that an empty query may also create a cursor with zero
rows.
pub fn exec_direct(&mut self, query: &str) -> Result<Option<Cursor<'_>>, Error>
[src]
Executes a preparable statement, using the current values of the parameter marker variables if any parameters exist in the statement. This is the fastest way to submit an SQL statement for one-time execution.
Return
Returns Some
if a cursor is created. If None
is returned no cursor has been created (
e.g. the query came back empty). Note that an empty query may also create a cursor with zero
rows.
Trait Implementations
impl<'conn> Drop for Connection<'conn>
[src]
Auto Trait Implementations
impl<'c> RefUnwindSafe for Connection<'c>
impl<'c> !Send for Connection<'c>
impl<'c> !Sync for Connection<'c>
impl<'c> Unpin for Connection<'c>
impl<'c> UnwindSafe for Connection<'c>
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,
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.
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>,