diff options
author | pixel <pixel> | 2004-11-27 21:43:48 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-11-27 21:43:48 +0000 |
commit | 583964f9f8e954eb57b31663065c5b9e833d045e (patch) | |
tree | acec0745ed26454ee1275d3887f7456307669014 /include/SQL.h | |
parent | 3f7070bf177b743be0eeb8c404a620f72eb15ab6 (diff) |
Large dos2unix commit...
Diffstat (limited to 'include/SQL.h')
-rw-r--r-- | include/SQL.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/include/SQL.h b/include/SQL.h index 4385a6d..637ff90 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
|