Definition at line 100 of file drivermanager.h.
Static Public Member Functions | |
static Connection * | getConnection (const ODBCXX_STRING &connectString) |
Opens a connection using an ODBC connect string. | |
static Connection * | getConnection (const ODBCXX_STRING &dsn, const ODBCXX_STRING &user, const ODBCXX_STRING &password) |
Opens a connection by it's DSN, a username and a password. | |
static Connection * | getConnection (const ODBCXX_STRING &connectString) |
Opens a connection using an ODBC connect string. | |
static Connection * | getConnection (const ODBCXX_STRING &dsn, const ODBCXX_STRING &user, const ODBCXX_STRING &password) |
Opens a connection by it's DSN, a username and a password. | |
static DataSourceList * | getDataSources () |
Fetch a list of all available data sources. | |
static DataSourceList * | getDataSources () |
Fetch a list of all available data sources. | |
static DriverList * | getDrivers () |
Fetch a list of the available drivers. | |
static DriverList * | getDrivers () |
Fetch a list of the available drivers. | |
static int | getLoginTimeout () |
Gets the current login timeout in seconds. | |
static int | getLoginTimeout () |
Gets the current login timeout in seconds. | |
static void | setLoginTimeout (int seconds) |
Sets the login timeout in seconds. | |
static void | setLoginTimeout (int seconds) |
Sets the login timeout in seconds. | |
static void | shutdown () |
Should be called before an application is to exit and after all connections have been closed. | |
static void | shutdown () |
Should be called before an application is to exit and after all connections have been closed. |
static Connection* odbc::DriverManager::getConnection | ( | const ODBCXX_STRING & | connectString | ) | [static] |
Opens a connection using an ODBC connect string.
connectString | Usually something like "DSN=db;uid=user;pwd=password" |
static Connection* odbc::DriverManager::getConnection | ( | const ODBCXX_STRING & | connectString | ) | [static] |
Opens a connection using an ODBC connect string.
connectString | Usually something like "DSN=db;uid=user;pwd=password" |
static int odbc::DriverManager::getLoginTimeout | ( | ) | [static] |
Gets the current login timeout in seconds.
static int odbc::DriverManager::getLoginTimeout | ( | ) | [static] |
Gets the current login timeout in seconds.
static void odbc::DriverManager::setLoginTimeout | ( | int | seconds | ) | [static] |
Sets the login timeout in seconds.
seconds | The number of seconds to wait for a connection to open. Set to 0 to disable. |
static void odbc::DriverManager::setLoginTimeout | ( | int | seconds | ) | [static] |
Sets the login timeout in seconds.
seconds | The number of seconds to wait for a connection to open. Set to 0 to disable. |