mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
22 lines
683 B
C++
22 lines
683 B
C++
#ifndef _INCLUDE_SOURCEMOD_MYSQL_DRIVER_H
|
|
#define _INCLUDE_SOURCEMOD_MYSQL_DRIVER_H
|
|
|
|
#include "MysqlHeaders.h"
|
|
|
|
namespace SourceMod
|
|
{
|
|
class MysqlDriver : public ISQLDriver
|
|
{
|
|
public:
|
|
IDatabase *Connect(DatabaseInfo *info, int *errcode, char *error, size_t maxlength);
|
|
IDatabase *Connect2(DatabaseInfo *info, int *errcode, char *error, size_t maxlength);
|
|
const char *NameString();
|
|
bool IsCompatDriver(const char *namestring);
|
|
int QuoteString(const char *str, char buffer[], size_t maxlen, size_t *newsize);
|
|
public:
|
|
IDatabase *_Connect(DatabaseInfo *info, int *errcode, char *error, size_t maxlength, bool do_timeout);
|
|
};
|
|
};
|
|
|
|
#endif //_INCLUDE_SOURCEMOD_MYSQL_DRIVER_H
|