mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 14:55:36 +03:00
35 lines
693 B
C
35 lines
693 B
C
|
#ifndef _INCLUDE_SOURCEMOD_SQLITE_QUERY_H
|
||
|
#define _INCLUDE_SOURCEMOD_SQLITE_QUERY_H
|
||
|
|
||
|
#include "SqliteHeaders.h"
|
||
|
|
||
|
namespace SourceMod
|
||
|
{
|
||
|
class SqliteDatabase;;
|
||
|
class SqliteResultSet;
|
||
|
|
||
|
class SqliteQuery : public IQuery
|
||
|
{
|
||
|
public:
|
||
|
struct SqliteResults
|
||
|
{
|
||
|
char **results;
|
||
|
int rows;
|
||
|
int cols;
|
||
|
};
|
||
|
public:
|
||
|
SqliteQuery(SqliteDatabase *db, const char *query);
|
||
|
~SqliteQuery();
|
||
|
public:
|
||
|
void FreeHandle();
|
||
|
bool Execute(QueryInfo *info, char *error, size_t maxlength);
|
||
|
bool ExecuteR(QueryInfo *info, char *error, size_t maxlength);
|
||
|
private:
|
||
|
SqliteDatabase *m_pDatabase;
|
||
|
SqliteResultSet *m_LastRes;
|
||
|
char *m_QueryString;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
#endif //_INCLUDE_SOURCEMOD_SQLITE_QUERY_H
|