Struct odbc::Connection
[−]
[src]
pub struct Connection<'env> { /* fields omitted */ }
Represents a connection to an ODBC data source
Methods
impl<'env> Connection<'env>
[src]
fn is_read_only(&mut self) -> Result<bool>
[src]
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.
fn disconnect(self) -> Result<()>
[src]
Closes the connection to the data source. If not called explicitly the disconnect will be
invoked implicitly by drop()
Trait Implementations
impl<'env> Handle for Connection<'env>
[src]
impl<'env> Handle for Connection<'env>
[src]
const HANDLE_TYPE: HandleType
HANDLE_TYPE: HandleType = ffi::SQL_HANDLE_DBC
Used to identify the type of the handle in various functions of the ODBC C interface
fn handle(&self) -> SQLHANDLE
[src]
Returns a ptr to the wrapped ODBC Object