classSchemaRules
final class SchemaRules
implements SchemaRules
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
MySql SchemaRules implementation.
Methods§
Rejects declarations whose column state requires evaluating another relation.
Calls 2
- static-call Tree::outer() line 27
- static-call Tree::unsupported() line 29
Parameters
$source | Node |
Returns
list<Node>Calls 4
- function-call
array_valuesline 39 - function-call
array_filterline 39 - static-call Tree::outer() line 39
- method-call Node::tokens() line 39
public function primaryOptionsNotNull(Node $source): boolpublic function primaryNotNull(
ColumnDefinition $column,
list<string> $primary,
list<TableConstraint> $constraints,
): boolParameters
$column | ColumnDefinition | |
$primary | list<string> | |
$constraints | list<TableConstraint> |
Returns
boolpublic function tableKey(TableDefinition $table): stringReturns the declaration identity used for duplicate detection.
Parameters
$table | TableDefinition |
Returns
stringpublic function qualify(
Node $header,
list<string> $parts,
Identifiers $identifiers,
): list<string>Parameters
$header | Node | |
$parts | list<string> | |
$identifiers | Identifiers |
Returns
list<string>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