MediaWiki
master
IForeignRepoWithDB.php
Go to the documentation of this file.
1
<?php
21
use
Wikimedia\Rdbms\IDatabase
;
22
use
Wikimedia\Rdbms\IReadableDatabase
;
23
40
interface
IForeignRepoWithDB
{
46
public
function
getPrimaryDB
();
47
53
public
function
getReplicaDB
();
54
}
IForeignRepoWithDB
A foreign repo that allows for direct access to the foreign MW database.
Definition
IForeignRepoWithDB.php:40
IForeignRepoWithDB\getReplicaDB
getReplicaDB()
Get a connection to the replica DB for the foreign repo.
IForeignRepoWithDB\getPrimaryDB
getPrimaryDB()
Get a connection to the primary DB for the foreign repo.
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
includes
filerepo
IForeignRepoWithDB.php
Generated on Sat May 4 2024 17:23:09 for MediaWiki by
1.10.0