|
|
virtual const char * | GetInterfaceName ()=0 |
| | Must return a string defining the interface's unique name.
|
| |
|
virtual unsigned int | GetInterfaceVersion ()=0 |
| | Must return an integer defining the interface's version.
|
| |
| virtual void | AddDriver (IDBDriver *pDriver)=0 |
| | Adds a driver to the DBI system. Not thread safe. More...
|
| |
| virtual void | RemoveDriver (IDBDriver *pDriver)=0 |
| | Removes a driver from the DBI system. Not thread safe. More...
|
| |
| virtual const DatabaseInfo * | FindDatabaseConf (const char *name)=0 |
| | Searches for database info by name. Both the return pointer and all pointers contained therein should be considered volatile. More...
|
| |
| virtual bool | Connect (const char *name, IDBDriver **pdr, IDatabase **pdb, bool persistent, char *error, size_t maxlength)=0 |
| | Tries to connect to a named database. Not thread safe. More...
|
| |
| virtual unsigned int | GetDriverCount ()=0 |
| | Returns the number of drivers loaded. Not thread safe. More...
|
| |
| virtual IDBDriver * | GetDriver (unsigned int index)=0 |
| | Returns a driver by index. Not thread safe. More...
|
| |
| virtual Handle_t | CreateHandle (DBHandleType type, void *ptr, IdentityToken_t *pToken)=0 |
| | Creates a Handle_t of the IDBDriver type. Not thread safe. More...
|
| |
| virtual HandleError | ReadHandle (Handle_t hndl, DBHandleType type, void **ptr)=0 |
| | Reads an IDBDriver pointer from an IDBDriver handle. Not thread safe. More...
|
| |
| virtual HandleError | ReleaseHandle (Handle_t hndl, DBHandleType type, IdentityToken_t *token)=0 |
| | Releases an IDBDriver handle. More...
|
| |
| virtual IDBDriver * | FindOrLoadDriver (const char *driver)=0 |
| | Given a driver name, attempts to find it. If it is not found, SourceMod will attempt to load it. This function is not thread safe. More...
|
| |
| virtual IDBDriver * | GetDefaultDriver ()=0 |
| | Returns the default driver, or NULL if none is set. This function is not thread safe. More...
|
| |
| virtual bool | AddToThreadQueue (IDBThreadOperation *op, PrioQueueLevel prio)=0 |
| | Adds a threaded database operation to the priority queue. This function is not thread safe. More...
|
| |
| virtual void | AddDependency (IExtension *myself, IDBDriver *driver)=0 |
| | Adds a dependency from one extension to the owner of a driver. More...
|
| |
| virtual bool | IsVersionCompatible (unsigned int version) |
| | Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. More...
|
| |
Describes the DBI manager.