classColumnReader
final class ColumnReader
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Reads declaration-level nullability, defaults, and column constraints.
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 26
- new DialectParser line 26
public function read(
Node $node,
list<Node> $attributes,
?Node $table = null,
): array{ColumnDefinition, list<TableConstraint>}Returns
array{ColumnDefinition, list<TableConstraint>}Called from 1
Calls 22
- static-call Tree::outer() line 35
- static-call Tree::unsupported() line 38
- method-call Identifiers::parts() line 40
- method-call TypeReader::read() line 41
- new TypeReader line 41
- class-const Nullability::MaybeNull() line 42
- method-call ConstraintReader::read() line 46
- new ConstraintReader line 46
- function-call
strtoupperline 52 - function-call
array_sliceline 53 - function-call
implodeline 55 - function-call
array_mapline 55 - function-call
preg_matchline 56 - class-const Nullability::NotNull() line 57
- function-call
str_starts_withline 58 - method-call ValueReader::read() line 59
- new ColumnProperties line 63
- method-call ColumnProperties::generation() line 64
- class-const GenerationKind::Identity() line 65
- method-call ColumnProperties::autoIncrement() line 65
- new ColumnDefinition line 68
- method-call ColumnProperties::collation() line 68
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
ColumnReaderTestcalls
Other tests reaching this symbol 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsConstraintReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls