enumDialect
enum Dialect: string
implements Dialect
Public API: explicitly declared with
@visibility public.Selects the MySql implementation installed with this package.
$semantics = new \SqlSemantics\Facade\Semantics(\SqlSemantics\Platform\MySql\Dialect::MySql);
$semantics->analyze('DROP TABLE example')->toString() // => 'DROP TABLE example'Cases§
case MySql = 'mysql'Methods§
public function platform(): PlatformSupplies this database's parser, models, and semantic policies.
Returns
Test cases 1
Test cases 87§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 86
StatementBench::benchRoundTripcallsSchemaAnalyzerTest::testAnalyzeLegacyStateUsesVersionedModelscallsSchemaAnalyzerTest::testAnalyzeUsesTheSelectedGrammarForStatecallsColumnPropertiesTest::testAutoIncrementIsAnExplicitStatePropertycallsColumnPropertiesTest::testGenerationKeepsNestedQueryStructureInsideTheColumncallsColumnReaderTest::testReadPreservesDeclaredNullabilityIndependentlyOfUsagecallsDialectParserTest::testParseScriptPreservesStringAndRoutineSemicolonscallsDialectParserTest::testParseScriptRejectsAnInvalidTrailingCommandcallsDialectParserTest::testParseUsesTheRequestedGrammarAndRetainsSqlcallsDialectParserTest::testRejectsAnUnavailableGrammarReleasecallsDialectParserTest::testVersionReturnsTheResolvedReleasecallsIdentifiersTest::providerIdentifierscallsIdentifiersTest::testRelationEqualModelsMysqlTableAliasesSeparatelyFromColumnscallsSchemaChangesTest::testDropAppliesInDeclarationOrdercallsSchemaReaderTest::testReadDeclaredKeysDefaultsAndCheckscallsTokenGroupsTest::testKeyNamesSeparatesPrefixLengthsAndSortDirectionscallsTypeReaderTest::providerCanonicalTypescallsTypeReaderTest::testReadPreservesDecimalPrecisionAndScalecallsBinderTest::testBindPropagatesSyntaxErrorscallsBinderTest::testBindResetsStatementIdentitiesWhenReusingTheBindercallsBinderTest::testBindSelfJoinPreservesOccurrenceIdentityAndNullProvenancecallsBinderTest::testBindUsesTheSchemasDefaultNamespacecallsExpressionBinderTest::testBindsParenthesesAndUnaryOperatorscallsExpressionBinderTest::testOperationPreservesOperatorPrecedencecallsExpressionRulesTest::testCallNullIfCanIntroduceNullWithoutAnOuterJoincallsExpressionRulesTest::testOperatorNullTestsAreNeverNullablecallsFromBinderTest::testBindCrossJoinHasNoMatchPredicatecallsFromBinderTest::testJoinedBindsOnBeforeIntroducingThisJoinsNullscallsLiteralBinderTest::testBindDistinguishesMysqlUnsignedAndDecimalBoundariescallsNullFactsTest::testCoalesceRequiresANonNullOperandToGuaranteeAValuecallsProjectionBinderTest::testBindExpandsUnqualifiedStarInFromOrdercallsProjectionBinderTest::testItemDecodesMysqlStringAliasescallsProjectionBinderTest::testItemExpandsStarsAndPreservesDuplicateNamescallsScopeTest::testColumnRejectsAmbiguousUnqualifiedNamescallsScopeTest::testCombineRejectsDuplicateAliasescallsScopeTest::testMatchesAliasHidesOriginalTableNamecallsSelectBinderTest::testBindConstantQueriesWithoutARelationcallsSelectModifiersBinderTest::testOrderingResolvesAliasesAndDirectioncallsSelectModifiersBinderTest::testPaginationReadsMysqlCommaOrdercallsSelectModifiersBinderTest::testSortExpressionDoesNotResolveAStringLiteralAsAnAliascallsTypeResolutionTest::testBooleanUsesDialectSpecificResultTypescallsSchemaBuilderTest::testBuildAcceptsSeparateSqlStringsInDeclarationOrdercallsSchemaBuilderTest::testBuildRetainsTheResolvedLanguageAndNamespacecallsSchemaBuilderTest::testRejectsAnUnavailableGrammarReleasecallsSchemaTest::testAnalyzePreservesStatePropertiescallsNameRulesTestcallsPlatformTest::testAnalyzeFakerRegressionscallsPlatformTest::testAnalyzePreservesKeywordNamesBeforeDotscallsPlatformTest::testAnalyzeRoundTripsCompleteStatementscallsPlatformTest::testAnalyzeWithEveryGrammarReleasecallsPlatformTest::testDefaultSchemaUsesTheLanguageNamespacecallsPlatformTest::testNamesDecodeQuotedIdentifierscallsPlatformTest::testParserPreservesTheSelectedVersioncallsPlatformTest::testQueryKeepsProjectionOrdercallsPlatformTest::testSchemaKeepsDeclarationscallsPlatformTest::testStatementNamesIdentifyTheParserRootcallsPlatformTest::testSyntaxRecognizesSelectBodycallsPlatformTest::testTypesRetainDialectIdentitycallsPlatformTest::testValuesReconstructsUsingTheParserReleasecallsQueryRulesTest::testJoinedTracksNullableInputcallsQueryRulesTest::testOrderingNodesPreserveDirectioncallsQueryRulesTest::testProjectionItemsPreserveOutputOrdercallsQueryRulesTest::testProjectionTokensExpandQualifiedStarcallsQueryRulesTest::testRelationResolvesAnAliascallsSchemaRulesTest::testColumnNodesPreserveOrdercallsSchemaRulesTest::testOptionsRetainsStructuredTableChoicescallsSchemaRulesTest::testPrimaryNotNullPromotesAnIntegerKeycallsSchemaRulesTest::testPrimaryOptionsNotNullAccountsForTablePolicycallsSchemaRulesTest::testQualifyPreservesExplicitNamespacescallsSchemaRulesTest::testSchemaNodeRetainsOriginalDeclarationcallsSchemaRulesTest::testTableKeyDistinguishesNamescallsSchemaRulesTest::testValidateAcceptsOrdinaryDeclarationscallsStatementTest::testToStringAttachesVariableMarkersToTheirNamescallsStatementTest::testToStringKeepsAnOptimizerHintAfterTheStatementKeywordcallsStatementTest::testToStringKeepsExecutableCommentDelimitersAroundTheSqlTheyEnclosecallsTypeRulesTest::testAffinityUsesDeclaredTypePrecedencecallsTypeRulesTest::testArithmeticRetainsLanguageSemanticscallsTypeRulesTest::testBooleanNamesPredicateResultcallsTypeRulesTest::testCanonicalResolvesIntegercallsTypeRulesTest::testCoalescePreservesOperandscallsTypeRulesTest::testCommonPreservesHomogeneousTypecallsTypeRulesTest::testIntegerModelsLargeMagnitudecallsTypeRulesTest::testPredicateAcceptsBooleanResultscallsTypeRulesTest::testProjectPreservesTypedValuescallsTypeRulesTest::testReadPreservesModifierscallsTypeRulesTest::testTypeNameClassifiesIntegerTokencalls