classSchemaRules
final class SchemaRules
implements SchemaRules
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Sqlite SchemaRules implementation.
Methods§
Rejects declarations whose column state requires evaluating another relation.
Calls 3
- static-call Tree::assertChildren() line 28
- static-call Tree::child() line 30
- static-call Tree::unsupported() line 32
Parameters
$source | Node |
Returns
list<Node>Called from 1
Calls 4
- function-call
array_valuesline 43 - function-call
array_filterline 43 - static-call Tree::outer() line 43
- method-call Node::tokens() line 43
public function primaryOptionsNotNull(Node $source): boolReports table-level primary key nullability.
Parameters
$source | Node |
Returns
boolCalls 4
- method-call SchemaRules::options() line 51
- function-call
in_arrayline 52 - function-call
strtoupperline 52 - static-call Tree::text() line 52
Parameters
$create | Node |
Calls 4
- method-call Node::find() line 65
- static-call Tree::child() line 66
- static-call Tree::outer() line 69
- function-call
array_reverseline 72
public function primaryNotNull(
ColumnDefinition $column,
list<string> $primary,
list<TableConstraint> $constraints,
): boolParameters
$column | ColumnDefinition | |
$primary | list<string> | |
$constraints | list<TableConstraint> |
Returns
boolCalls 2
- function-call
countline 81 - class-const ConstraintKind::PrimaryKey() line 85
public function tableKey(TableDefinition $table): stringReturns the declaration identity used for duplicate detection.
Parameters
$table | TableDefinition |
Returns
stringCalls 1
- function-call
strtolowerline 105
public function qualify(
Node $header,
list<string> $parts,
Identifiers $identifiers,
): list<string>Parameters
$header | Node | |
$parts | list<string> | |
$identifiers | Identifiers |
Returns
list<string>Calls 2
- static-call Tree::child() line 114
- method-call Identifiers::parts() line 115
Test cases 61§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
SchemaRulesTestcallsSchemaRulesTestcalls
Other tests reaching this symbol 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsDialectParserTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsTypeRulesTestcalls