MediaWiki master
IForeignRepoWithDB.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\FileRepo;
8
11
34 public function getPrimaryDB();
35
41 public function getReplicaDB();
42}
43
45class_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:31
A database connection without write operations.