|
const | READ_LOCKING = 3 |
| Constants for object loading bitfield flags (higher => higher QoS)
|
|
const | READ_NONE = -1 |
|
Definition at line 30 of file DBAccessBase.php.
◆ __construct()
DBAccessBase::__construct |
( |
|
$wiki = false | ) |
|
◆ getConnection()
DBAccessBase::getConnection |
( |
|
$id, |
|
|
|
$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
- Database
Definition at line 58 of file DBAccessBase.php.
References wfGetLB(), and wiki.
◆ getLoadBalancer()
DBAccessBase::getLoadBalancer |
( |
| ) |
|
◆ releaseConnection()
DBAccessBase::releaseConnection |
( |
Database |
$db | ) |
|
|
protected |
Releases a database connection and makes it available for recycling.
- See also
- LoadBalancer::reuseConnection()
- Since
- 1.21
- Parameters
-
Database | $db | The database connection to release. |
Definition at line 73 of file DBAccessBase.php.
References getLoadBalancer(), and wiki.
◆ $wiki
DBAccessBase::$wiki = false |
|
protected |
The documentation for this class was generated from the following file: