[−][src]Struct odbc_iter::Connection
Database connection.
Methods
impl Connection
[src]
pub fn new(
odbc: &'static Odbc,
connection_string: &str
) -> Result<Connection, OdbcError>
[src]
odbc: &'static Odbc,
connection_string: &str
) -> Result<Connection, OdbcError>
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]
odbc: &'static Odbc,
connection_string: &str
) -> Result<Connection, OdbcError>
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]
odbc: &'static Odbc,
connection_string: &str,
settings: Settings
) -> Result<Connection, OdbcError>
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]
odbc: &'static Odbc,
connection_string: &str,
settings: Settings
) -> Result<Connection, OdbcError>
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]
&'c mut self,
configuration: C
) -> Handle<'c, C>
Trait Implementations
impl Debug for Connection
[src]
impl Send for Connection
[src]
Assuming drivers support sending Connection between threads.
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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> ToErrorNoContext<T> for T
[src]
fn to_root_cause(self) -> ErrorNoContext<T>
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.