[][src]Struct odbc_iter::Connection

pub struct Connection { /* fields omitted */ }

Database connection.

Methods

impl Connection[src]

pub fn new(
    odbc: &'static Odbc,
    connection_string: &str
) -> Result<Connection, OdbcError>
[src]

Connect to database using connection string with default configuration options. This implementation will synchronize driver connect calls.

pub unsafe fn new_concurrent(
    odbc: &'static Odbc,
    connection_string: &str
) -> Result<Connection, OdbcError>
[src]

Connect to database using connection string with default configuration options. Assume that driver connect call is thread safe.

pub fn with_settings(
    odbc: &'static Odbc,
    connection_string: &str,
    settings: Settings
) -> Result<Connection, OdbcError>
[src]

Connect to database using connection string with configuration options. This implementation will synchronize driver connect calls.

pub unsafe fn with_settings_concurrent(
    odbc: &'static Odbc,
    connection_string: &str,
    settings: Settings
) -> Result<Connection, OdbcError>
[src]

Connect to database using connection string with configuration options. Assume that driver connect call is thread safe.

impl<'c: 'c> Connection[src]

pub fn handle(&'c mut self) -> Handle<'c, DefaultConfiguration>[src]

pub fn handle_with_configuration<C: Configuration>(
    &'c mut self,
    configuration: C
) -> Handle<'c, C>
[src]

Trait Implementations

impl Debug for Connection[src]

impl Send for Connection[src]

Assuming drivers support sending Connection between threads.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToErrorNoContext<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<E, C> WrapContext<C> for E[src]

type ContextError = ErrorContext<E, C>