Translations:Manual:Database access/13/en

For getting database connections you can call either $3 for read queries or $4 for write queries and write-informing read queries. The distinction between primary and replica is important in a multi-database environment, such as Wikimedia. See the Wrapper functions section below for how to interact with $2 objects.