#ifndef ____mysql_h__ #define ____mysql_h__ #include "Tag.h" #include "ZString.h" #include "MString.h" #include #include namespace jet { class __mysql : public Tag { public: __mysql(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local); ~__mysql(); void query(coreutils::MString query); void nextRow(); bool hasRow(); coreutils::ZString getColumnValue(coreutils::ZString column); private: MYSQL *mysql; MYSQL_RES *result; MYSQL_ROW row; unsigned long *fieldLength; unsigned int qFields; coreutils::MString sessionId; coreutils::MString NbrOfRows = "0"; }; } #endif