MediaWiki
master
IConnectionProvider.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
35
interface
IConnectionProvider
{
48
public
function
getPrimaryDatabase
( $domain =
false
):
IDatabase
;
49
63
public
function
getReplicaDatabase
( $domain =
false
, $group =
null
):
IReadableDatabase
;
64
81
public
function
commitAndWaitForReplication
( $fname, $ticket, array $opts = [] );
82
92
public
function
getEmptyTransactionTicket
( $fname );
93
}
Wikimedia\Rdbms\IConnectionProvider
Provide primary and replica IDatabase connections.
Definition
IConnectionProvider.php:35
Wikimedia\Rdbms\IConnectionProvider\getEmptyTransactionTicket
getEmptyTransactionTicket( $fname)
Get a token asserting that no write transactions are active on tracked connections.
Wikimedia\Rdbms\IConnectionProvider\commitAndWaitForReplication
commitAndWaitForReplication( $fname, $ticket, array $opts=[])
Commit primary DB transactions and wait for replication (if $ticket indicates it is safe).
Wikimedia\Rdbms\IConnectionProvider\getPrimaryDatabase
getPrimaryDatabase( $domain=false)
Get connection to the primary database.
Wikimedia\Rdbms\IConnectionProvider\getReplicaDatabase
getReplicaDatabase( $domain=false, $group=null)
Get connection to a replica database.
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:39
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:37
Wikimedia\Rdbms
Definition
ChangedTablesTracker.php:3
includes
libs
rdbms
lbfactory
IConnectionProvider.php
Generated on Thu Sep 12 2024 22:24:08 for MediaWiki by
1.10.0