* @copyright © 2013 Wikimedia Foundation Inc.
*/
+use Wikimedia\Rdbms\Database;
+use Wikimedia\Rdbms\IDatabase;
+use Wikimedia\Rdbms\IMaintainableDatabase;
use Wikimedia\Rdbms\LBFactory;
use Wikimedia\Rdbms\LBFactorySimple;
use Wikimedia\Rdbms\LBFactoryMulti;
);
unset( $db );
- /** @var Database $db */
+ /** @var IMaintainableDatabase $db */
$db = $lb->getConnection( DB_MASTER, [], '' );
$this->assertEquals(
]
);
$lb = $factory->getMainLB();
- /** @var Database $db */
+ /** @var IMaintainableDatabase $db */
$db = $lb->getConnection( DB_MASTER, [], '' );
$this->assertEquals( '', $db->getDomainID(), "Null domain used" );
]
);
$lb = $factory->getMainLB();
- /** @var Database $db */
+ /** @var IDatabase $db */
$db = $lb->getConnection( DB_MASTER, [], '' );
if ( $db->getType() === 'sqlite' ) {