MediaWiki master
IDBAccessObject.php
Go to the documentation of this file.
1<?php
24namespace Wikimedia\Rdbms;
25
59interface IDBAccessObject {
62 public const READ_NORMAL = 0;
63
65 public const READ_LATEST = 1;
66
68 public const READ_LOCKING = self::READ_LATEST | 2; // READ_LATEST (1) and "LOCK IN SHARE MODE" (2)
69
71 public const READ_EXCLUSIVE = self::READ_LOCKING | 4; // READ_LOCKING (3) and "FOR UPDATE" (4)
72
74 public const READ_LATEST_IMMUTABLE = 8;
75
77 public const READ_NONE = -1; // not loaded yet (or the object was cleared)
78}
79
81class_alias( IDBAccessObject::class, 'IDBAccessObject' );
Interface for database access objects.
const READ_LATEST
Read from the primary/quorum.
const READ_NORMAL
Constants for object loading bitfield flags (higher => higher QoS)
const READ_LOCKING
Read from the primary/quorum and lock out other writers.
const READ_LATEST_IMMUTABLE
Read from a replica DB or without a quorum, using the primary/quorum on miss.
const READ_NONE
Convenience constant for tracking how data was loaded (higher => higher QoS)
const READ_EXCLUSIVE
Read from the primary/quorum and lock out other writers and locking readers.