Translations:Manual:Database access/13/en

Either is typically called with a single parameter, which can be the  (for read queries) or   (for write queries and read queries that need to have absolutely newest information) constant. The distinction between master and replica is important in a multi-database environment, such as Wikimedia. See the Wrapper functions section below for what you can do with the returned $2 object.