classCatalogSchema
final class CatalogSchema
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Builds a schema directly from information_schema columns.
Methods§
public function fetchSchemaFromInformationSchema(PDO $pdo, string $tableName): TableSchemaReads schema from information schema.
Parameters
$pdo | PDO | |
$tableName | string |
Returns
Throws
RuntimeExceptionTest cases 2
Called from 1
Calls 10
- function-call
str_containsline 27 - function-call
explodeline 28 - method-call CatalogQuery::columns() line 33
- new CatalogQuery line 33
- new
RuntimeExceptionline 36 - method-call CatalogColumn::resolveType() line 42
- new CatalogColumn line 42
- method-call CatalogColumn::parseDefault() line 47
- new ColumnDefinition line 50
- new TableSchema line 65
Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 8
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsSqlSchemaProviderTestcalls