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>Parameters
$columnsBlock | string |
Returns
list<string>Test cases 1
Called from 1
Test cases 13§
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 9
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsPostgreSqlSchemaParserTestcallsSqlSchemaProviderTestcalls
Relations§
Instantiated in 4
- new SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:29
- new SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:31
- new SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:36
- new SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:41
Method calls 4
- method-call SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:29
- method-call SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:31
- method-call SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:36
- method-call SqlFixture\Platform\PostgreSql\PostgreSqlSchemaParser::parse() packages/sql-fixture/src/Platform/PostgreSql/PostgreSqlSchemaParser.php:41