MediaWiki
master
IDBAccessObject.php
Go to the documentation of this file.
1
<?php
24
namespace
Wikimedia\Rdbms
;
25
59
interface
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
81
class_alias( IDBAccessObject::class,
'IDBAccessObject'
);
Wikimedia\Rdbms\IDBAccessObject
Interface for database access objects.
Definition
IDBAccessObject.php:59
Wikimedia\Rdbms\IDBAccessObject\READ_LATEST
const READ_LATEST
Read from the primary/quorum.
Definition
IDBAccessObject.php:65
Wikimedia\Rdbms\IDBAccessObject\READ_NORMAL
const READ_NORMAL
Constants for object loading bitfield flags (higher => higher QoS)
Definition
IDBAccessObject.php:62
Wikimedia\Rdbms\IDBAccessObject\READ_LOCKING
const READ_LOCKING
Read from the primary/quorum and lock out other writers.
Definition
IDBAccessObject.php:68
Wikimedia\Rdbms\IDBAccessObject\READ_LATEST_IMMUTABLE
const READ_LATEST_IMMUTABLE
Read from a replica DB or without a quorum, using the primary/quorum on miss.
Definition
IDBAccessObject.php:74
Wikimedia\Rdbms\IDBAccessObject\READ_NONE
const READ_NONE
Convenience constant for tracking how data was loaded (higher => higher QoS)
Definition
IDBAccessObject.php:77
Wikimedia\Rdbms\IDBAccessObject\READ_EXCLUSIVE
const READ_EXCLUSIVE
Read from the primary/quorum and lock out other writers and locking readers.
Definition
IDBAccessObject.php:71
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
IDBAccessObject.php
Generated on Sun Nov 3 2024 13:24:27 for MediaWiki by
1.10.0