summaryrefslogtreecommitdiff
path: root/include/SQL.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/SQL.h')
-rw-r--r--include/SQL.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/include/SQL.h b/include/SQL.h
index 637ff90..4385a6d 100644
--- a/include/SQL.h
+++ b/include/SQL.h
@@ -1,25 +1,25 @@
-#ifndef __SQL_H__
-#define __SQL_H__
-
-#include <map>
-#include <mysql.h>
-#include <Exceptions.h>
-
-typedef std::map<String, String> AssocArray;
-
-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);
- int numrows();
- int numfields();
- AssocArray fetchrow();
- private:
- MYSQL con;
- MYSQL_RES * res;
- int nr, nf;
- MYSQL_FIELD * fields;
-};
-
-#endif
+#ifndef __SQL_H__
+#define __SQL_H__
+
+#include <map>
+#include <mysql.h>
+#include <Exceptions.h>
+
+typedef std::map<String, String> AssocArray;
+
+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);
+ int numrows();
+ int numfields();
+ AssocArray fetchrow();
+ private:
+ MYSQL con;
+ MYSQL_RES * res;
+ int nr, nf;
+ MYSQL_FIELD * fields;
+};
+
+#endif