Definition at line 34 of file DBAccessBase.php.
◆ __construct()
DBAccessBase::__construct |
( |
|
$dbDomain = false | ) |
|
◆ getConnection()
DBAccessBase::getConnection |
( |
|
$id, |
|
|
array |
$groups = [] |
|
) |
| |
|
protected |
Returns a database connection.
- See also
- 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 |
( |
| ) |
|
|
protected |
Get the database type used for read operations.
- See also
- MediaWikiServices::getInstance()->getDBLoadBalancer
- Since
- 1.21
- Returns
- ILoadBalancer The database load balancer object
Definition at line 89 of file DBAccessBase.php.
References $lb.
Referenced by getConnection().
◆ 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. |
- Deprecated:
- Since 1.34
Definition at line 76 of file DBAccessBase.php.
◆ $dbDomain
string bool DBAccessBase::$dbDomain = false |
|
protected |
◆ $lb
The documentation for this class was generated from the following file: