2006-04-23 01:10:06 +00:00
|
|
|
#ifndef _INCLUDE_SOURCEMOD_MYSQL_QUERY_H
|
|
|
|
#define _INCLUDE_SOURCEMOD_MYSQL_QUERY_H
|
|
|
|
|
|
|
|
#include "MysqlHeaders.h"
|
|
|
|
|
|
|
|
namespace SourceMod
|
|
|
|
{
|
|
|
|
class MysqlDatabase;
|
|
|
|
class MysqlResultSet;
|
|
|
|
|
|
|
|
class MysqlQuery : public IQuery
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MysqlQuery(const char *querystring, MysqlDatabase *db);
|
|
|
|
~MysqlQuery();
|
|
|
|
public:
|
|
|
|
void FreeHandle();
|
|
|
|
bool Execute(QueryInfo *info, char *error, size_t maxlength);
|
|
|
|
bool ExecuteR(QueryInfo *info, char *error, size_t maxlength);
|
2006-08-28 19:17:26 +00:00
|
|
|
bool Execute2(QueryInfo *info, char *error, size_t maxlength);
|
2006-08-18 02:19:38 +00:00
|
|
|
const char *GetQueryString();
|
2006-04-23 01:10:06 +00:00
|
|
|
private:
|
|
|
|
MysqlDatabase *m_pDatabase;
|
|
|
|
char *m_QueryString;
|
|
|
|
size_t m_QueryLen;
|
|
|
|
MysqlResultSet *m_LastRes;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEMOD_MYSQL_QUERY_H
|