classConstraintReader
final class ConstraintReader
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Extracts integrity declarations while preserving the complete original constraint.
Properties§
public Identifiers $identifiersMethods§
public function __construct(public Identifiers $identifiers, ?ValueReader $values = null)Binds the dependencies used for semantic binding.
Parameters
$identifiers | Identifiers | |
$values | ?ValueReader |
Calls 2
- method-call DialectParser::version() line 25
- new DialectParser line 25
public function read(Node $node, ?string $column = null): ?TableConstraintReads an integrity condition, or returns null for another attribute.
Parameters
$node | Node | |
$column | ?string |
Returns
Called from 2
Calls 15
- static-call TokenGroups::constraintHeader() line 33
- method-call Node::tokens() line 33
- function-call
strtoupperline 34 - class-const ConstraintKind::PrimaryKey() line 35
- class-const ConstraintKind::Unique() line 36
- class-const ConstraintKind::ForeignKey() line 37
- class-const ConstraintKind::Check() line 38
- static-call TokenGroups::parentheses() line 44
- static-call TokenGroups::keyNames() line 45
- method-call ConstraintReader::references() line 49
- static-call Tree::outer() line 51
- new TableConstraint line 53
- method-call ValueReader::read() line 53
- function-call
in_arrayline 53 - function-call
array_mapline 53
public function references(Node $node): array{list<string>, list<string>}Parameters
$node | Node |
Returns
array{list<string>, list<string>}Called from 1
Calls 6
- method-call Node::tokens() line 63
- function-call
strtoupperline 64 - function-call
in_arrayline 72 - method-call Identifiers::name() line 76
- static-call TokenGroups::parentheses() line 79
- static-call TokenGroups::keyNames() line 81
Private surface 1§
Implementation details, listed for orientation only.
private ValueReader $valuesTest cases 60§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ConstraintReaderTestcalls
Other tests reaching this symbol 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls