|
const | READ_LOCKING = self::READ_LATEST | 2 |
| Constants for object loading bitfield flags (higher => higher QoS)
|
|
const | READ_NONE = -1 |
|
Definition at line 34 of file DBAccessBase.php.
◆ __construct()
DBAccessBase::__construct |
( |
| $wiki = false | ) |
|
- Parameters
-
string | bool | $wiki | The target wiki's name. This must be an ID that LBFactory can understand. |
Definition at line 45 of file DBAccessBase.php.
References $wiki.
◆ getConnection()
DBAccessBase::getConnection |
( |
| $id, |
|
|
array | $groups = [] ) |
|
protected |
Returns a database connection.
- See also
- wfGetDB()
-
LoadBalancer::getConnection()
- Since
- 1.21
- Parameters
-
int | $id | Which connection to use |
array | $groups | Query groups |
- Returns
- IDatabase
Definition at line 62 of file DBAccessBase.php.
References getLoadBalancer().
◆ getLoadBalancer()
DBAccessBase::getLoadBalancer |
( |
| ) |
|
Get the database type used for read operations.
- See also
- MediaWikiServices::getInstance()->getDBLoadBalancer
- Since
- 1.21
- Returns
- LoadBalancer The database load balancer object
Definition at line 93 of file DBAccessBase.php.
Referenced by getConnection(), and releaseConnection().
◆ releaseConnection()
DBAccessBase::releaseConnection |
( |
IDatabase | $db | ) |
|
|
protected |
Releases a database connection and makes it available for recycling.
- See also
- LoadBalancer::reuseConnection()
- Since
- 1.21
- Parameters
-
IDatabase | $db | The database connection to release. |
Definition at line 77 of file DBAccessBase.php.
References getLoadBalancer().
◆ $wiki
DBAccessBase::$wiki = false |
|
protected |
The documentation for this class was generated from the following file: