2006-04-23 01:10:06 +00:00
|
|
|
#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);
|
2006-10-01 19:46:56 +00:00
|
|
|
IDatabase *Connect2(DatabaseInfo *info, int *errcode, char *error, size_t maxlength);
|
2006-04-23 01:10:06 +00:00
|
|
|
const char *NameString();
|
|
|
|
bool IsCompatDriver(const char *namestring);
|
2009-01-08 20:02:09 +00:00
|
|
|
int QuoteString(const char *str, char buffer[], size_t maxlen, size_t *newsize);
|
2006-10-01 19:46:56 +00:00
|
|
|
public:
|
|
|
|
IDatabase *_Connect(DatabaseInfo *info, int *errcode, char *error, size_t maxlength, bool do_timeout);
|
2006-04-23 01:10:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_INCLUDE_SOURCEMOD_MYSQL_DRIVER_H
|