49 $this->lb = MediaWikiServices::getInstance()->getDBLoadBalancerFactory()
66 return $this->
getLoadBalancer()->getConnectionRef( $id, $groups, $this->dbDomain );
getLoadBalancer()
Get the database type used for read operations.
__construct( $dbDomain=false)
Stable to call.
string bool $dbDomain
The target wiki's DB domain.
getConnection( $id, array $groups=[])
Returns a database connection.
releaseConnection(IDatabase $db)
Releases a database connection and makes it available for recycling.
Interface for database access objects.