provider
Methods
public odbc();
|
public odbc(const odbc&);
|
public odbc(const std::string& username, const std::string& password);
|
public ~odbc();
|
The default constructor does very little, because provider_data
initializes most data members.
Most providers require a username and password to open a connection to the database. Those that don't can ignore the parameters, but must provide the constructor anyway, in case the application insists on passing them.
The copy constructor copies only the authentication information.
The destructor frees any resources and closes the connection. Throws an exception if the native library returns an error.