final class MySqlSchemaFetcher
    implements SchemaFetcherInterface

Fetches table schemas from MySQL databases using SHOW CREATE TABLE.

Methods§

public function __construct(?MySqlSchemaParser $parser = null)

Initializes the collaborators and declared state for this object.

Parameters

Calls 1
public function fetchSchema(PDO $pdo, string $tableName): TableSchema

Reads the named table from the selected database connection.

Parameters

$pdoPDO
$tableNamestring
Test cases 1
Calls 3

Private surface 1§

Implementation details, listed for orientation only.

private MySqlSchemaParser $parser

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 7

Relations§

Instantiated in 1