My Project

Loading...
Searching...
No Matches
__mysql.h
1#ifndef ____mysql_h__
2#define ____mysql_h__
3
4#include "Tag.h"
5#include "ZString.h"
6#include "MString.h"
7#include <sstream>
8#include <mysql/mysql.h>
9
10 namespace jet {
11
12 class __mysql : public Tag {
13
14 public:
15 __mysql(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local);
16 ~__mysql();
17
18 void query(coreutils::MString query);
19 void nextRow();
20 bool hasRow();
21 coreutils::ZString getColumnValue(coreutils::ZString column);
22
23 private:
24 MYSQL *mysql;
25 MYSQL_RES *result;
26 MYSQL_ROW row;
27 unsigned long *fieldLength;
28 unsigned int qFields;
29 coreutils::MString sessionId;
30
31 coreutils::MString nbrOfRows = "0";
32 coreutils::MString nbrOfColumns = "0";
33
34 };
35
36}
37
38#endif
jet::Global
Definition Global.h:12
jet::Tag
Definition Tag.h:19
jet::__mysql
Definition __mysql.h:12