Add DB ConnectionManagers
authoraddshore <addshorewiki@gmail.com>
Mon, 21 Nov 2016 13:26:07 +0000 (13:26 +0000)
committeraddshore <addshorewiki@gmail.com>
Wed, 30 Nov 2016 11:43:22 +0000 (11:43 +0000)
commitc3c3cf96968e49ef5becfc079cea02c970faaf5a
tree1ca819954fe254ea49c1abfd88214ca395516718
parent6fce2ba116edb36d7b78aa7bb59eab4820787dc8
Add DB ConnectionManagers

This moves and refactors the ConsistentReadConnectionManager
from Wikibase into the core rdbms lib.
The refactoring also creates a generic ConnectionManager.

This relates to Iff20a22f9f2bc7ceefd6defc0ed9a494a6fe62c0
which introduced a DB factory / connection manager in
an extension revealing the need for this in multiple places.

Change-Id: I0c58e15aed5bed88323d18cb95e5008f8d3381c5
autoload.php
includes/libs/rdbms/connectionmanager/ConnectionManager.php [new file with mode: 0644]
includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManager.php [new file with mode: 0644]
tests/phpunit/includes/libs/rdbms/connectionmanager/ConnectionManagerTest.php [new file with mode: 0644]
tests/phpunit/includes/libs/rdbms/connectionmanager/ConsistentReadConnectionManagerTest.php [new file with mode: 0644]