DDraceNetwork Docs
IDbConnection Class Referenceabstract

#include <connection.h>

Inheritance diagram for IDbConnection:
[legend]

Public Member Functions

 IDbConnection (const char *pPrefix)
 
virtual ~IDbConnection ()
 
IDbConnectionoperator= (const IDbConnection &)=delete
 
virtual void Print (IConsole *pConsole, const char *pMode)=0
 
const char * GetPrefix () const
 
virtual const char * BinaryCollate () const =0
 
virtual void ToUnixTimestamp (const char *pTimestamp, char *aBuf, unsigned int BufferSize)=0
 
virtual const char * InsertTimestampAsUtc () const =0
 
virtual const char * CollateNocase () const =0
 
virtual const char * InsertIgnore () const =0
 
virtual const char * Random () const =0
 
virtual const char * MedianMapTime (char *pBuffer, int BufferSize) const =0
 
virtual const char * False () const =0
 
virtual const char * True () const =0
 
virtual bool Connect (char *pError, int ErrorSize)=0
 
virtual void Disconnect ()=0
 
virtual bool PrepareStatement (const char *pStmt, char *pError, int ErrorSize)=0
 
virtual void BindString (int Idx, const char *pString)=0
 
virtual void BindBlob (int Idx, unsigned char *pBlob, int Size)=0
 
virtual void BindInt (int Idx, int Value)=0
 
virtual void BindInt64 (int Idx, int64_t Value)=0
 
virtual void BindFloat (int Idx, float Value)=0
 
virtual void BindNull (int Idx)=0
 
virtual void Print ()=0
 
virtual bool Step (bool *pEnd, char *pError, int ErrorSize)=0
 
virtual bool ExecuteUpdate (int *pNumUpdated, char *pError, int ErrorSize)=0
 
virtual bool IsNull (int Col)=0
 
virtual float GetFloat (int Col)=0
 
virtual int GetInt (int Col)=0
 
virtual int64_t GetInt64 (int Col)=0
 
virtual void GetString (int Col, char *pBuffer, int BufferSize)=0
 
virtual int GetBlob (int Col, unsigned char *pBuffer, int BufferSize)=0
 
virtual bool AddPoints (const char *pPlayer, int Points, char *pError, int ErrorSize)=0
 

Protected Member Functions

void FormatCreateRace (char *aBuf, unsigned int BufferSize, bool Backup) const
 
void FormatCreateTeamrace (char *aBuf, unsigned int BufferSize, const char *pIdType, bool Backup) const
 
void FormatCreateMaps (char *aBuf, unsigned int BufferSize) const
 
void FormatCreateSaves (char *aBuf, unsigned int BufferSize, bool Backup) const
 
void FormatCreatePoints (char *aBuf, unsigned int BufferSize) const
 

Private Attributes

char m_aPrefix [64]
 

Constructor & Destructor Documentation

◆ IDbConnection()

IDbConnection::IDbConnection ( const char *  pPrefix)

◆ ~IDbConnection()

virtual IDbConnection::~IDbConnection ( )
inlinevirtual

Member Function Documentation

◆ AddPoints()

virtual bool IDbConnection::AddPoints ( const char *  pPlayer,
int  Points,
char *  pError,
int  ErrorSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BinaryCollate()

virtual const char * IDbConnection::BinaryCollate ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindBlob()

virtual void IDbConnection::BindBlob ( int  Idx,
unsigned char *  pBlob,
int  Size 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindFloat()

virtual void IDbConnection::BindFloat ( int  Idx,
float  Value 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindInt()

virtual void IDbConnection::BindInt ( int  Idx,
int  Value 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindInt64()

virtual void IDbConnection::BindInt64 ( int  Idx,
int64_t  Value 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindNull()

virtual void IDbConnection::BindNull ( int  Idx)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ BindString()

virtual void IDbConnection::BindString ( int  Idx,
const char *  pString 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ CollateNocase()

virtual const char * IDbConnection::CollateNocase ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Connect()

virtual bool IDbConnection::Connect ( char *  pError,
int  ErrorSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Disconnect()

virtual void IDbConnection::Disconnect ( )
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ ExecuteUpdate()

virtual bool IDbConnection::ExecuteUpdate ( int *  pNumUpdated,
char *  pError,
int  ErrorSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ False()

virtual const char * IDbConnection::False ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ FormatCreateMaps()

void IDbConnection::FormatCreateMaps ( char *  aBuf,
unsigned int  BufferSize 
) const
protected

◆ FormatCreatePoints()

void IDbConnection::FormatCreatePoints ( char *  aBuf,
unsigned int  BufferSize 
) const
protected

◆ FormatCreateRace()

void IDbConnection::FormatCreateRace ( char *  aBuf,
unsigned int  BufferSize,
bool  Backup 
) const
protected

◆ FormatCreateSaves()

void IDbConnection::FormatCreateSaves ( char *  aBuf,
unsigned int  BufferSize,
bool  Backup 
) const
protected

◆ FormatCreateTeamrace()

void IDbConnection::FormatCreateTeamrace ( char *  aBuf,
unsigned int  BufferSize,
const char *  pIdType,
bool  Backup 
) const
protected

◆ GetBlob()

virtual int IDbConnection::GetBlob ( int  Col,
unsigned char *  pBuffer,
int  BufferSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ GetFloat()

virtual float IDbConnection::GetFloat ( int  Col)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ GetInt()

virtual int IDbConnection::GetInt ( int  Col)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ GetInt64()

virtual int64_t IDbConnection::GetInt64 ( int  Col)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ GetPrefix()

const char * IDbConnection::GetPrefix ( ) const
inline

◆ GetString()

virtual void IDbConnection::GetString ( int  Col,
char *  pBuffer,
int  BufferSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ InsertIgnore()

virtual const char * IDbConnection::InsertIgnore ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ InsertTimestampAsUtc()

virtual const char * IDbConnection::InsertTimestampAsUtc ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ IsNull()

virtual bool IDbConnection::IsNull ( int  Col)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ MedianMapTime()

virtual const char * IDbConnection::MedianMapTime ( char *  pBuffer,
int  BufferSize 
) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ operator=()

IDbConnection & IDbConnection::operator= ( const IDbConnection )
delete

◆ PrepareStatement()

virtual bool IDbConnection::PrepareStatement ( const char *  pStmt,
char *  pError,
int  ErrorSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Print() [1/2]

virtual void IDbConnection::Print ( )
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Print() [2/2]

virtual void IDbConnection::Print ( IConsole pConsole,
const char *  pMode 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Random()

virtual const char * IDbConnection::Random ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ Step()

virtual bool IDbConnection::Step ( bool *  pEnd,
char *  pError,
int  ErrorSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ ToUnixTimestamp()

virtual void IDbConnection::ToUnixTimestamp ( const char *  pTimestamp,
char *  aBuf,
unsigned int  BufferSize 
)
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

◆ True()

virtual const char * IDbConnection::True ( ) const
pure virtual

Implemented in CMysqlConnection, and CSqliteConnection.

Member Data Documentation

◆ m_aPrefix

char IDbConnection::m_aPrefix[64]
private

The documentation for this class was generated from the following files: