Struct odbc::Connection
source · pub struct Connection<'env> { /* private fields */ }
Expand description
Represents a connection to an ODBC data source
Implementations
sourceimpl<'env> Connection<'env>
impl<'env> Connection<'env>
sourcepub fn is_read_only(&mut self) -> Result<bool>
pub fn is_read_only(&mut self) -> Result<bool>
true
if the data source is set to READ ONLY mode, false
otherwise.
This characteristic pertains only to the data source itself; it is not characteristic of the driver that enables access to the data source. A driver that is read/write can be used with a data source that is read-only. If a driver is read-only, all of its data sources must be read-only.
sourcepub fn disconnect(self) -> Result<()>
pub fn disconnect(self) -> Result<()>
Closes the connection to the data source. If not called explicitly the disconnect will be
invoked implicitly by drop()
Trait Implementations
sourceimpl<'env> Handle for Connection<'env>
impl<'env> Handle for Connection<'env>
sourceimpl<'env> Handle for Connection<'env>
impl<'env> Handle for Connection<'env>
sourceconst HANDLE_TYPE: HandleType = ffi::SQL_HANDLE_DBC
const HANDLE_TYPE: HandleType = ffi::SQL_HANDLE_DBC
Used to identify the type of the handle in various functions of the ODBC C interface
Auto Trait Implementations
impl<'env> RefUnwindSafe for Connection<'env>
impl<'env> !Send for Connection<'env>
impl<'env> !Sync for Connection<'env>
impl<'env> Unpin for Connection<'env>
impl<'env> UnwindSafe for Connection<'env>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<H> Diagnostics for Hwhere
H: Handle,
impl<H> Diagnostics for Hwhere
H: Handle,
sourcefn diagnostics(
&self,
rec_number: i16,
message_text: &mut [u8]
) -> ReturnOption<DiagResult, ()>
fn diagnostics(
&self,
rec_number: i16,
message_text: &mut [u8]
) -> ReturnOption<DiagResult, ()>
Returns the current values of multiple fields of a diagnostic record that contains error,
warning, and status information. Read more