MediaWiki 1.40.4
IConnectionProvider.php
Go to the documentation of this file.
1<?php
20namespace Wikimedia\Rdbms;
21
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}
Narrow interface providing primary/replica connections.
getEmptyTransactionTicket( $fname)
Get a token asserting that no write transactions are active on tracked connections.
commitAndWaitForReplication( $fname, $ticket, array $opts=[])
Commit primary DB transactions and wait for replication (if $ticket indicates it is safe).
getPrimaryDatabase( $domain=false)
Get connection to the primary database.
getReplicaDatabase( $domain=false, $group=null)
Get connection to a replica database.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:36
A database connection without write operations.