#include <public/IDBDriver.h>
Public Member Functions | |
| virtual unsigned int | GetDBIVersion () |
| virtual IDatabase * | Connect (const DatabaseInfo *info, bool persistent, char *error, size_t maxlength)=0 |
| Initiates a database connection. | |
| virtual const char * | GetIdentifier ()=0 |
| Returns a case insensitive database identifier string. | |
| virtual const char * | GetProductName ()=0 |
| Returns a case sensitive implementation name. | |
| virtual Handle_t | GetHandle ()=0 |
| Retrieves a Handle_t handle of the IDBDriver type. | |
| virtual IdentityToken_t * | GetIdentity ()=0 |
| Returns the driver's controlling identity (must be the same as from IExtension::GetIdentity). | |
| virtual bool | IsThreadSafe ()=0 |
| Returns whether the driver is thread safe. | |
| virtual bool | InitializeThreadSafety ()=0 |
| Initializes thread safety for the calling thread. | |
| virtual void | ShutdownThreadSafety ()=0 |
| Shuts down thread safety for the calling thread. | |
Definition at line 602 of file IDBDriver.h.
| virtual IDatabase* SourceMod::IDBDriver::Connect | ( | const DatabaseInfo * | info, | |
| bool | persistent, | |||
| char * | error, | |||
| size_t | maxlength | |||
| ) | [pure virtual] |
Initiates a database connection.
Note: Persistent connections should never be created from a thread.
| info | Database connection info pointer. | |
| persistent | If true, a previous persistent connection will be re-used if possible. | |
| error | Buffer to store error message. | |
| maxlength | Maximum size of the error buffer. |
| virtual const char* SourceMod::IDBDriver::GetIdentifier | ( | ) | [pure virtual] |
Returns a case insensitive database identifier string.
| virtual const char* SourceMod::IDBDriver::GetProductName | ( | ) | [pure virtual] |
Returns a case sensitive implementation name.
| virtual Handle_t SourceMod::IDBDriver::GetHandle | ( | ) | [pure virtual] |
| virtual IdentityToken_t* SourceMod::IDBDriver::GetIdentity | ( | ) | [pure virtual] |
Returns the driver's controlling identity (must be the same as from IExtension::GetIdentity).
| virtual bool SourceMod::IDBDriver::IsThreadSafe | ( | ) | [pure virtual] |
Returns whether the driver is thread safe.
| virtual bool SourceMod::IDBDriver::InitializeThreadSafety | ( | ) | [pure virtual] |
Initializes thread safety for the calling thread.
1.5.1