JetCore/__mysql.h

36 lines
676 B
C
Raw Normal View History

2024-09-18 16:52:08 -07:00
#ifndef ____mysql_h__
#define ____mysql_h__
2022-05-19 11:43:15 -07:00
#include "Tag.h"
#include "ZString.h"
#include "MString.h"
#include <sstream>
2024-09-18 16:52:08 -07:00
#include <mysql/mysql.h>
2022-05-19 11:43:15 -07:00
namespace jet {
class __mysql : public Tag {
public:
2024-07-08 18:32:56 -07:00
__mysql(coreutils::ZString &in, coreutils::MString &parent, Global &global);
2024-09-18 16:52:08 -07:00
~__mysql();
2022-05-19 11:43:15 -07:00
2024-09-18 16:52:08 -07:00
void query(coreutils::MString query);
coreutils::ZString getColumnValue(coreutils::ZString column);
2024-09-18 16:52:08 -07:00
private:
MYSQL *mysql;
MYSQL_RES *result;
MYSQL_ROW row;
unsigned long *fieldLength;
unsigned int qFields;
coreutils::MString sessionId;
coreutils::MString NbrOfRows = "0";
2024-09-18 16:52:08 -07:00
2022-05-19 11:43:15 -07:00
};
}
#endif