[−][src]Struct odbc::Connection
Represents a connection to an ODBC data source
Methods
impl<'env> Connection<'env, AutocommitOn>
[src]
pub fn disable_autocommit(self) -> Result<Connection<'env, AutocommitOff>, Self>
[src]
impl<'env> Connection<'env, AutocommitOff>
[src]
pub fn enable_autocommit(self) -> Result<Connection<'env, AutocommitOn>, Self>
[src]
pub fn commit(&mut self) -> Result<()>
[src]
pub fn rollback(&mut self) -> Result<()>
[src]
impl<'env, AC: AutocommitMode> Connection<'env, AC>
[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, AC: AutocommitMode> Handle for Connection<'env, AC>
[src]
impl<'env, AC: Debug + AutocommitMode> Debug for Connection<'env, AC>
[src]
impl<'env, AC: AutocommitMode> Handle for Connection<'env, AC>
[src]
const HANDLE_TYPE: HandleType
[src]
fn handle(&self) -> SQLHANDLE
[src]
Auto Trait Implementations
impl<'env, AC> !Send for Connection<'env, AC>
impl<'env, AC> !Sync for Connection<'env, AC>
impl<'env, AC> Unpin for Connection<'env, AC> where
AC: Unpin,
AC: Unpin,
impl<'env, AC> UnwindSafe for Connection<'env, AC> where
AC: UnwindSafe,
AC: UnwindSafe,
impl<'env, AC> RefUnwindSafe for Connection<'env, AC> where
AC: RefUnwindSafe,
AC: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<H> Diagnostics for H where
H: Handle,
[src]
H: Handle,
fn diagnostics(
&self,
rec_number: i16,
message_text: &mut [u8]
) -> ReturnOption<DiagResult, ()>
[src]
&self,
rec_number: i16,
message_text: &mut [u8]
) -> ReturnOption<DiagResult, ()>