MediaWiki master
IForeignRepoWithDB.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\FileRepo;
22
25
48 public function getPrimaryDB();
49
55 public function getReplicaDB();
56}
57
59class_alias( IForeignRepoWithDB::class, 'IForeignRepoWithDB' );
A foreign repo that allows for direct access to the foreign MW database.
getPrimaryDB()
Get a connection to the primary DB for the foreign repo.
getReplicaDB()
Get a connection to the replica DB for the foreign repo.
Interface to a relational database.
Definition IDatabase.php:45
A database connection without write operations.