classTableSyntax
final class TableSyntax
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Reads the outer CREATE TABLE syntax.
Methods§
public function normalizeSql(string $sql): stringNormalizes the outer SQL text before parsing its declarations.
Parameters
$sql | string |
Returns
stringTest cases 1
Called from 1
public function extractTableName(string $sql): ?stringReads the declared table identifier.
Parameters
$sql | string |
Returns
?stringTest cases 1
Called from 1
Calls 1
- function-call
preg_matchline 32
public function extractColumnsBlock(string $sql): ?stringReturns the parenthesized table definition body.
Parameters
$sql | string |
Returns
?stringTest cases 1
Called from 1
public function extractTablePrimaryKeys(string $columnsBlock): list<string>Extract PRIMARY KEY column names from table-level PRIMARY KEY constraint.
Parameters
$columnsBlock | string |
Returns
list<string>Test cases 1
Called from 1
Test cases 18§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 14
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsSqliteSchemaFetcherTestcallsSqliteSchemaParserTestcallsDatabaseSchemaCacheTestcallsDdlDirectoryTestcallsDdlFileTestcallsSqlSchemaProviderTestcallsSchemaFetcherInterfaceTestcallsSchemaParserInterfaceTestcalls
Relations§
Instantiated in 4
- new SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:32
- new SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:34
- new SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:39
- new SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:44
Method calls 4
- method-call SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:32
- method-call SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:34
- method-call SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:39
- method-call SqlFixture\Platform\Sqlite\SqliteSchemaParser::parse() packages/sql-fixture/src/Platform/Sqlite/SqliteSchemaParser.php:44