classMySqlSchemaFetcher
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
$parser | ?MySqlSchemaParser |
Calls 1
public function fetchSchema(PDO $pdo, string $tableName): TableSchemaReads the named table from the selected database connection.
Parameters
$pdo | PDO | |
$tableName | string |
Returns
Test cases 1
Calls 3
- method-call CreateTableQuery::fetchCreateTableSql() line 31
- new CreateTableQuery line 31
- method-call MySqlSchemaParser::parse() line 32
Private surface 1§
Implementation details, listed for orientation only.
private MySqlSchemaParser $parserTest cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.