[][src]Struct odbc::Connection

pub struct Connection<'env> { /* fields omitted */ }

Represents a connection to an ODBC data source

Methods

impl<'env> Connection<'env>[src]

pub 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.

pub 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]

type To = Dbc

impl<'env> Handle for Connection<'env>[src]

Auto Trait Implementations

impl<'env> !Send for Connection<'env>

impl<'env> !Sync for Connection<'env>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<H> Diagnostics for H where
    H: Handle
[src]