Helper class for DAO classes.
More...
Inherits Wikimedia\Rdbms\IDBAccessObject.
|
const | READ_EXCLUSIVE = self::READ_LOCKING | 4 |
| Read from the primary/quorum and lock out other writers and locking readers.
|
|
const | READ_LATEST = 1 |
| Read from the primary/quorum.
|
|
const | READ_LATEST_IMMUTABLE = 8 |
| Read from a replica DB or without a quorum, using the primary/quorum on miss.
|
|
const | READ_LOCKING = self::READ_LATEST | 2 |
| Read from the primary/quorum and lock out other writers.
|
|
const | READ_NONE = -1 |
| Convenience constant for tracking how data was loaded (higher => higher QoS)
|
|
const | READ_NORMAL = 0 |
| Constants for object loading bitfield flags (higher => higher QoS)
|
|
Helper class for DAO classes.
- Since
- 1.26
Definition at line 33 of file DBAccessObjectUtils.php.
◆ getDBFromIndex()
static Wikimedia\Rdbms\DBAccessObjectUtils::getDBFromIndex |
( |
IConnectionProvider | $dbProvider, |
|
|
int | $index ) |
|
static |
◆ getDBFromRecency()
static Wikimedia\Rdbms\DBAccessObjectUtils::getDBFromRecency |
( |
IConnectionProvider | $dbProvider, |
|
|
int | $recency ) |
|
static |
◆ getDBOptions()
static Wikimedia\Rdbms\DBAccessObjectUtils::getDBOptions |
( |
| $bitfield | ) |
|
|
static |
◆ hasFlags()
static Wikimedia\Rdbms\DBAccessObjectUtils::hasFlags |
( |
| $bitfield, |
|
|
| $flags ) |
|
static |
- Parameters
-
int | $bitfield | |
int | $flags | IDBAccessObject::READ_* constant |
- Returns
- bool Bitfield has flag $flag set
Definition at line 39 of file DBAccessObjectUtils.php.
The documentation for this class was generated from the following file: