46 $this->lb = MediaWikiServices::getInstance()->getDBLoadBalancerFactory()
63 return $this->
getLoadBalancer()->getConnectionRef( $id, $groups, $this->dbDomain );
getLoadBalancer()
Get the database type used for read operations.
__construct( $dbDomain=false)
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.