22 #ifndef __ODBCXX_DRIVERMANAGER_H
23 #define __ODBCXX_DRIVERMANAGER_H
27 #include <odbc++/setup.h>
28 #include <odbc++/types.h>
40 ODBCXX_STRING description_;
41 std::vector<ODBCXX_STRING> attributes_;
48 Driver(
const ODBCXX_STRING& description,
49 const std::vector<ODBCXX_STRING>& attributes)
50 :description_(description), attributes_(attributes) {}
74 ODBCXX_STRING description_;
78 DataSource(
const ODBCXX_STRING& name,
const ODBCXX_STRING& description)
79 :name_(name), description_(description) {}
103 static SQLHENV henv_;
104 static std::auto_ptr<ErrorHandler> eh_;
105 static int loginTimeout_;
106 static SQLUSMALLINT driverCompletion_;
108 static void _checkInit();
117 static Connection* getConnection(
const ODBCXX_STRING& dsn,
118 const ODBCXX_STRING& user,
119 const ODBCXX_STRING& password);
124 static Connection* getConnection(
const ODBCXX_STRING& connectString);
129 static int getLoginTimeout();
135 static void setLoginTimeout(
int seconds);
142 static void setDriverCompletion(SQLUSMALLINT drvcmpl);
143 static SQLUSMALLINT getDriverCompletion(
void);
156 static void shutdown();
164 #endif // __ODBCXX_DRIVERMANAGER_H