classPlatform
final class Platform
implements Platform
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Assembles MySql semantic behavior from independent core contracts.
Methods§
public function __construct(private Dialect $dialect)Retains the public language identity in all semantic types.
Parameters
$dialect | Dialect |
public function parser(?string $version = null): SqlParserConfigures the selected grammar release.
Parameters
$version | ?string |
Returns
SqlParserCalls 1
- new MySqlParser line 34
public function values(string $version): ValueReaderLoads this package's statement construction map for the resolved release.
Parameters
$version | string |
Returns
Calls 5
- static-call ValueReader::fromFile() line 42
- function-call
dirnameline 42 - function-call
basenameline 42 - new TriviaReader line 42
- static-call MySqlVersion::resolve() line 42
public function defaultSchema(): stringSupplies the default declaration namespace.
Returns
stringpublic function statementNames(): array{string, string}Returns
array{string, string}public function syntax(): SyntaxRulespublic function names(): NameRulespublic function types(): TypeRulespublic function schema(): SchemaRulespublic function query(): QueryRulesPrivate surface 1§
Implementation details, listed for orientation only.
private Dialect $dialectTest cases 68§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
PlatformTestcallsPlatformTestcalls
Other tests reaching this symbol 66
AnalyzerTestcallsSchemaAnalyzerTestcallsValueReaderTestcallsAnalysisExceptionTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsDialectParserTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsBoundSelectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsDialectTest::testPlatformBelongsToThisDatabasecallsSchemaTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsElementTestcallsStatementTestcallsWriterTestcallsTypeRulesTestcalls