Struct odbc::Environment
[−]
[src]
pub struct Environment { /* fields omitted */ }
Handle to an ODBC Environment
Creating an instance of this type is the first thing you do then using ODBC. The environment must outlive all connections created with it
Methods
impl Environment
[src]
fn new() -> Result<Environment>
Allocates a new ODBC Environment
Declares the Application's ODBC Version to be 3
fn drivers(&self) -> Result<Vec<DriverInfo>>
Stores all driver description and attributes in a Vec
fn data_sources(&self) -> Result<Vec<DataSourceInfo>>
Stores all data source server names and descriptions in a Vec
fn system_data_sources(&self) -> Result<Vec<DataSourceInfo>>
Stores all sytem data source server names and descriptions in a Vec
fn user_data_sources(&self) -> Result<Vec<DataSourceInfo>>
Stores all user data source server names and descriptions in a Vec
unsafe fn raw(&mut self) -> SQLHENV
Allows access to the raw ODBC handle
unsafe fn set_attribute(&mut self,
attribute: SQLINTEGER,
value: SQLPOINTER,
length: SQLINTEGER)
-> Result<()>
attribute: SQLINTEGER,
value: SQLPOINTER,
length: SQLINTEGER)
-> Result<()>
Allows setting attributes to Environment