classSyntaxRules
final class SyntaxRules
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Maps semantic roles onto the configured grammar's node and token names.
Methods§
public function __construct(private array<string, list<string>> $roles)Parameters
$roles | array<string, list<string>> |
public function nodes(string $role): list<string>Parameters
$role | string |
Returns
list<string>Test cases 1
Called from 4
- method-call SqlSemantics\Core\Binding\ExpressionBinder::qualified() packages/sql-semantics/src/Core/Binding/ExpressionBinder.php:79
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:22
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:23
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:31
Private surface 1§
Implementation details, listed for orientation only.
private array<string, list<string>> $rolesTest cases 61§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 60
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsDialectParserTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls
Relations§
Instantiated in 3
- new SqlSemantics\Platform\MySql\Platform::syntax() packages/sql-semantics-mysql/src/Platform.php:66
- new SqlSemantics\Platform\PostgreSql\Platform::syntax() packages/sql-semantics-postgres/src/Platform.php:65
- new SqlSemantics\Platform\Sqlite\Platform::syntax() packages/sql-semantics-sqlite/src/Platform.php:65
Method calls 4
- method-call SqlSemantics\Core\Binding\ExpressionBinder::qualified() packages/sql-semantics/src/Core/Binding/ExpressionBinder.php:79
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:22
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:23
- method-call SqlSemantics\Core\Binding\SyntaxGuard::select() packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:31
Type declarations 6
- type SqlSemantics\Platform\MySql\Platform packages/sql-semantics-mysql/src/Platform.php:64
- type SqlSemantics\Platform\PostgreSql\Platform packages/sql-semantics-postgres/src/Platform.php:63
- type SqlSemantics\Platform\Sqlite\Platform packages/sql-semantics-sqlite/src/Platform.php:63
- type SqlSemantics\Core\Binding\ExpressionBinder packages/sql-semantics/src/Core/Binding/ExpressionBinder.php:70
- type SqlSemantics\Core\Binding\SyntaxGuard packages/sql-semantics/src/Core/Binding/SyntaxGuard.php:20
- type SqlSemantics\Core\Platform packages/sql-semantics/src/Core/Platform.php:43