classDialect
final class Dialect
implements Dialect
Restricted visibility: declared "@visibility SqlFormatter". Code outside that scope must not name this declaration.
Declares PostgreSql grammar ownership and lexical formatting behavior.
Methods§
public function syntaxRules(): RulesDescribes layout roles across the supported grammar releases.
Returns
Test cases 1
public function compactRules(): SettingsComposes canonicalization rules without depending on another platform.
Returns
Test cases 7
KeywordsTest::testIdentifierRecognizesGrammarNameRolescallsKeywordsTest::testTextPreservesKeywordIdentifiersAndLiteralBytescallsRulesTest::testApplyDoesNotRemoveCastAsInsideAProjectioncallsRulesTest::testApplyRemovesOnlyDefaultsOwnedByTheSelectedGrammarRulecallsTriviaTest::testBlockEndRespectsTheDialectNestingRulescallsTriviaTest::testCleanKeepsOnlyTopLevelDirectivescallsDialectTest::testCompactRulesNormalizeDeclaredTerminalAliasescalls
Test cases 36§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 34
DocumentTestcallsGroupingTestcallsKeywordsTest::testIdentifierRecognizesGrammarNameRolescallsKeywordsTest::testTextPreservesKeywordIdentifiersAndLiteralBytescallsReductionsTestcallsRendererTestcallsRulesTest::testApplyDoesNotRemoveCastAsInsideAProjectioncallsRulesTest::testApplyRemovesOnlyDefaultsOwnedByTheSelectedGrammarRulecallsShapeTestcallsSpacingTestcallsTriviaTest::testBlockEndRespectsTheDialectNestingRulescallsTriviaTest::testCleanKeepsOnlyTopLevelDirectivescallsVisitorTestcallsFormatOptionsTestcallsFormattingExceptionTestcallsBlockTestcallsElementsTestcallsHeadersTestcallsPolicyTestcallsRendererTestcallsSpacingTestcallsWriterTestcallsStyleTestcallsAnalyzerTestcallsBracketsTestcallsDocumentTestcallsExpressionsTestcallsFingerprintTestcallsHeadersTestcallsListsTestcallsMarkersTestcallsRulesTestcallsDialectFactoryTest::testForParserUsesEachBuiltInImplementationcallsFormatterTestcalls