classPragmaSchema
final class PragmaSchema
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Reconstructs a schema from SQLite PRAGMA column metadata.
Methods§
public function fetchSchemaViaPragma(PDO $pdo, string $tableName): TableSchemaBuild schema directly from PRAGMA table_info.
Parameters
$pdo | PDO | |
$tableName | string |
Returns
Throws
RuntimeExceptionTest cases 1
Called from 1
Calls 7
- function-call
preg_replaceline 24 - method-call
PDO::query()line 26 - new
RuntimeExceptionline 28 - class-const
PDO::FETCH_ASSOC()line 34 - method-call PragmaColumn::parse() line 44
- new PragmaColumn line 44
- new TableSchema line 51
public function parseDefaultValue(?string $value): int|float|string|nullParses default value.
Parameters
$value | ?string |
Returns
int|float|string|nullTest cases 2
Called from 1
Test cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 11
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPragmaColumnTestcallsSqliteSchemaFetcherTestcallsDatabaseSchemaCacheTestcallsSqlSchemaProviderTestcallsSchemaFetcherInterfaceTestcalls