Describes an SQL driver.
More...
#include <public/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.
- Parameters
-
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. |
- Returns
- A new IDatabase pointer, or NULL on failure.
virtual Handle_t SourceMod::IDBDriver::GetHandle |
( |
| ) |
|
|
pure virtual |
Retrieves a Handle_t handle of the IDBDriver type.
- Returns
- A Handle_t handle.
virtual const char* SourceMod::IDBDriver::GetIdentifier |
( |
| ) |
|
|
pure virtual |
Returns a case insensitive database identifier string.
- Returns
- String containing an identifier.
virtual IdentityToken_t* SourceMod::IDBDriver::GetIdentity |
( |
| ) |
|
|
pure virtual |
Returns the driver's controlling identity (must be the same as from IExtension::GetIdentity).
- Returns
- An IdentityToken_t identity.
virtual const char* SourceMod::IDBDriver::GetProductName |
( |
| ) |
|
|
pure virtual |
Returns a case sensitive implementation name.
- Returns
- String containing an implementation name.
virtual bool SourceMod::IDBDriver::InitializeThreadSafety |
( |
| ) |
|
|
pure virtual |
Initializes thread safety for the calling thread.
- Returns
- True on success, false otherwise.
virtual bool SourceMod::IDBDriver::IsThreadSafe |
( |
| ) |
|
|
pure virtual |
Returns whether the driver is thread safe.
- Returns
- True if thread safe, false otherwise.
The documentation for this class was generated from the following file: