classTokenGroups
final class TokenGroups
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Reads balanced declaration groups from tokens already classified by sql-parser.
Methods§
public static function keyNames(list<Token> $tokens, Identifiers $identifiers): list<string>Reads named index keys, skipping expression keys and their nested identifiers. Length prefixes, collations and sort directions are properties of a key.
Parameters
$tokens | list<Token> | |
$identifiers | Identifiers |
Returns
list<string>Called from 2
Calls 1
- method-call Identifiers::name() line 62
public static function constraintHeader(
list<Token> $tokens,
Identifiers $identifiers,
): array{?string, list<Token>}Separates an optional constraint name from its integrity clause.
Parameters
$tokens | list<Token> | |
$identifiers | Identifiers |
Returns
array{?string, list<Token>}Test cases 1
Called from 2
Calls 4
- function-call
strtoupperline 85 - function-call
in_arrayline 86 - method-call Identifiers::name() line 87
- function-call
array_sliceline 88
public static function names(list<Token> $tokens, Identifiers $identifiers): list<string>Test cases 62§
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 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls
Relations§
Static calls 6
- static-call SqlSemantics\Core\Ast\ColumnProperties::collation() packages/sql-semantics/src/Core/Ast/ColumnProperties.php:67
- static-call SqlSemantics\Core\Ast\ConstraintReader::read() packages/sql-semantics/src/Core/Ast/ConstraintReader.php:33
- static-call SqlSemantics\Core\Ast\ConstraintReader::read() packages/sql-semantics/src/Core/Ast/ConstraintReader.php:44
- static-call SqlSemantics\Core\Ast\ConstraintReader::read() packages/sql-semantics/src/Core/Ast/ConstraintReader.php:45
- static-call SqlSemantics\Core\Ast\ConstraintReader::references() packages/sql-semantics/src/Core/Ast/ConstraintReader.php:79
- static-call SqlSemantics\Core\Ast\ConstraintReader::references() packages/sql-semantics/src/Core/Ast/ConstraintReader.php:81