summaryrefslogtreecommitdiff
path: root/libodbcpp/connection.h
diff options
context:
space:
mode:
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
+