62 $loadBalancer =
wfGetLB( $this->wiki );
64 return $loadBalancer->getConnection( $id, $groups, $this->wiki );
77 if ( $this->wiki !==
false ) {
79 $loadBalancer->reuseConnection( $db );
wfGetLB( $wiki=false)
Get a load balancer object.
getLoadBalancer()
Get the database type used for read operations.
__construct( $wiki=false)
releaseConnection(IDatabase $db)
Releases a database connection and makes it available for recycling.
getConnection( $id, $groups=[])
Returns a database connection.
Interface for database access objects.