classDefinitionList
final class DefinitionList
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Splits table definitions while tracking parentheses.
Methods§
public function parseColumns(
string $columnsBlock,
string $tableName,
list<string> $tablePrimaryKeys,
): array<string, ColumnDefinition>Parameters
$columnsBlock | string | |
$tableName | string | |
$tablePrimaryKeys | list<string> |
Returns
array<string, ColumnDefinition>Test cases 1
Called from 1
Calls 5
- method-call DefinitionList::splitColumnDefinitions() line 23
- function-call
trimline 26 - method-call DefinitionList::isTableConstraint() line 31
- method-call ColumnParser::parseColumnDefinition() line 35
- new ColumnParser line 35
public function splitColumnDefinitions(string $columnsBlock): list<string>Separates column definitions while preserving nested and quoted SQL.
Parameters
$columnsBlock | string |
Returns
list<string>Test cases 1
Called from 1
Calls 2
- method-call DefinitionSegments::split() line 51
- new DefinitionSegments line 51
public function isTableConstraint(string $definition): boolRecognizes table constraints that do not declare a column.
Parameters
$definition | string |
Returns
boolCalled from 1
Test cases 12§
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 9
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsDatabaseFixtureProviderTestcallsFileFixtureProviderTestcallsFixtureProviderTestcallsPlatformFactoryTestcallsPostgreSqlSchemaFetcherTestcallsPostgreSqlSchemaParserTestcallsSqlSchemaProviderTestcalls