summaryrefslogtreecommitdiff
path: root/libodbcpp/connection.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
committerrandomdan <randomdan@localhost>2006-07-08 16:32:05 +0000
commit2a1fa15d8baa4eda37e17b2e9362f8bde17a939d (patch)
tree09386e52320b7c52a521ab56fc7553896e639dcd /libodbcpp/connection.h
downloadlibdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.bz2
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.tar.xz
libdbpp-odbc-2a1fa15d8baa4eda37e17b2e9362f8bde17a939d.zip
libcodbcpp initial release
Diffstat (limited to 'libodbcpp/connection.h')
-rw-r--r--libodbcpp/connection.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h
new file mode 100644
index 0000000..d5adb31
--- /dev/null
+++ b/libodbcpp/connection.h
@@ -0,0 +1,18 @@
+#ifndef CONNECTION_H
+#define CONNECTION_H
+
+#include "dsn.h"
+#include <sql.h>
+
+namespace ODBC {
+ class Connection : private DSN {
+ public:
+ Connection(const DSN& d);
+ ~Connection();
+ SQLHENV env;
+ SQLHDBC conn;
+ };
+}
+
+#endif
+