MediaWiki master
IDBAccessObject.php
Go to the documentation of this file.
1<?php
57interface IDBAccessObject {
60 public const READ_NORMAL = 0;
61
63 public const READ_LATEST = 1;
64
66 public const READ_LOCKING = self::READ_LATEST | 2; // READ_LATEST (1) and "LOCK IN SHARE MODE" (2)
67
69 public const READ_EXCLUSIVE = self::READ_LOCKING | 4; // READ_LOCKING (3) and "FOR UPDATE" (4)
70
72 public const READ_LATEST_IMMUTABLE = 8;
73
75 public const READ_NONE = -1; // not loaded yet (or the object was cleared)
76}
Interface for database access objects.
const READ_LOCKING
Read from the primary/quorum and lock out other writers.
const READ_NORMAL
Constants for object loading bitfield flags (higher => higher QoS)
const READ_NONE
Convenience constant for tracking how data was loaded (higher => higher QoS)
const READ_LATEST
Read from the primary/quorum.
const READ_LATEST_IMMUTABLE
Read from a replica DB or without a quorum, using the primary/quorum on miss.
const READ_EXCLUSIVE
Read from the primary/quorum and lock out other writers and locking readers.