Struct odbc::DataSource [] [src]

pub struct DataSource<'a> { /* fields omitted */ }

Represents a connection to an ODBC data source

Methods

impl<'a> DataSource<'a>
[src]

Connects to an ODBC data source

Arguments

  • env - Environment used to allocate the data source handle.
  • dsn - Data source name configured in the odbc.ini file!()
  • usr - User identifier
  • pwd - Authentication (usually password)

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.

Allows access to the raw ODBC handle

Trait Implementations

impl<'a> Drop for DataSource<'a>
[src]

A method called when the value goes out of scope. Read more