MediaWiki
REL1_40
IConnectionProvider.php
Go to the documentation of this file.
1
<?php
20
namespace
Wikimedia\Rdbms
;
21
33
interface
IConnectionProvider
{
43
public
function
getPrimaryDatabase
( $domain =
false
):
IDatabase
;
44
55
public
function
getReplicaDatabase
( $domain =
false
, $group =
null
):
IReadableDatabase
;
56
73
public
function
commitAndWaitForReplication
( $fname, $ticket, array $opts = [] );
74
84
public
function
getEmptyTransactionTicket
( $fname );
85
}
Wikimedia\Rdbms\IConnectionProvider
Narrow interface providing primary/replica connections.
Definition
IConnectionProvider.php:33
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:36
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:33
Wikimedia\Rdbms
Definition
ChronologyProtector.php:20
includes
libs
rdbms
lbfactory
IConnectionProvider.php
Generated on Thu Jun 27 2024 14:03:17 for MediaWiki by
1.10.0