blob: ee28eb0eae26c7cd2941c5993a52ddd9f1ab7703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|