The DriverManager.
More...
#include <drivermanager.h>
static Connection* odbc::DriverManager::getConnection |
( |
const std::string & |
connectString | ) |
|
|
static |
Opens a connection using an ODBC connect string.
- Parameters
-
connectString | Usually something like "DSN=db;uid=user;pwd=password" |
static int odbc::DriverManager::getLoginTimeout |
( |
| ) |
|
|
static |
Gets the current login timeout in seconds.
- Returns
- The current login timeout in seconds, or 0 if disabled.
static void odbc::DriverManager::setDriverCompletion |
( |
SQLUSMALLINT |
drvcmpl | ) |
|
|
static |
Sets the Driver completion for Connections.
- Parameters
-
drvcmpl | Driver Completion Value SQL_DRIVER_NOPROMPT, SQL_DRIVER_COMPLETE(Default), SQL_DRIVER_PROMPT, SQL_DRIVER_COMPLETE_REQUIRED See Options for SQLDriverConnect |
static void odbc::DriverManager::setLoginTimeout |
( |
int |
seconds | ) |
|
|
static |
Sets the login timeout in seconds.
- Parameters
-
seconds | The number of seconds to wait for a connection to open. Set to 0 to disable. |
The documentation for this class was generated from the following file: