summaryrefslogtreecommitdiff
path: root/include/SQL.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/SQL.h')
-rw-r--r--include/SQL.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/SQL.h b/include/SQL.h
new file mode 100644
index 0000000..ee28eb0
--- /dev/null
+++ b/include/SQL.h
@@ -0,0 +1,20 @@
+#ifndef __SQL_H__
+#define __SQL_H__
+
+#include <set>
+#include <mysql.h>
+#include <Exceptions.h>
+
+//typedef AssocArray std::set<String, compare>;
+
+class SQLConnection : public Base {
+ public:
+ SQLConnection(String host, String user, String passwd, String db, int port = 3306, String socket = "", unsigned long clags = 0) throw (GeneralException);
+ ~SQLConnection();
+ void query(String) throw (GeneralException);
+ private:
+ MYSQL con;
+ MYSQL_RES * res;
+};
+
+#endif