MediaWiki master
IConnectionProvider.php
Go to the documentation of this file.
1<?php
6namespace Wikimedia\Rdbms;
7
34 public function getPrimaryDatabase( $domain = false ): IDatabase;
35
49 public function getReplicaDatabase( string|false $domain = false, $group = null ): IReadableDatabase;
50
67 public function commitAndWaitForReplication( $fname, $ticket, array $opts = [] );
68
78 public function getEmptyTransactionTicket( $fname );
79}
Provide primary and replica IDatabase connections.
getEmptyTransactionTicket( $fname)
Get a token asserting that no write transactions are active on tracked connections.
getReplicaDatabase(string|false $domain=false, $group=null)
Get connection to a replica database.
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.
Interface to a relational database.
Definition IDatabase.php:31
A database connection without write operations.