mini\Database\PDODatabase::withTables() Method

public

Signature

public function withTables(array $tables): mini\Database\DatabaseInterface

Parameters

Name Type Default Description
$tables array required Documentation missing

Returns

mini\Database\DatabaseInterface

Documentation

Create a VirtualDatabase with shadowed tables

Registers all tables from this database as PartialQuery objects, then shadows with the provided tables. This allows joining between real database tables and mock/test data.

Source

src/Database/PDODatabase.php:824-848