enumStyle
enum Style: string
Public API: explicitly declared with
@visibility public.Compact canonicalizes SQL; the three multiline layouts preserve token spelling.
\SqlFormatter\Core\Style::Expanded->value // => 'expanded'Cases§
case Compact = 'compact'case Expanded = 'expanded'case Tabular = 'tabular'case River = 'river'Test cases 32§
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 31
FormatterBench::setUpCompactcallsFormatTarget::optionscallsMySqlEquivalencecallsPgEquivalencecallsSqliteEquivalencecallsSettingsTestcallsDialectTest::testCompactRulesCanProvideAnIndependentGrammarcallsFormatOptionsTest::testDefaultLayoutcallsFormatOptionsTest::testIndentLimitscallsFormatterTestcallsBlockTest::testRenderFormatsNestedBlockscallsElementsTest::testWriteFormatsCaseBranchescallsHeadersTest::testWriteAlignsRiverHeadercallsPolicyTest::testBeforeHeaderAndBodyPlacementcallsPolicyTest::testBodyIndentUsesAlignedContentColumncallsFormatterTest::providerGeneratedStatementscallsFormatterTest::providerPreservationcallsFormatterTest::providerStylescallsFormatterTest::providerTokenPreservationcallsFormatterTest::providerVersionscallsFormatterTest::testFormatGeneratedStatementscallsFormatterTest::testFormatKeepsHostnamesAdjacentToAtSignscallsFormatterTest::testFormatNestedCteWithConfiguredIndentcallsFormatterTest::testFormatPreservesMysqlSqlModecallsFormatterTest::testFormatRemainsCanonicalAcrossLayoutscallsDialectTestcallsDialectTestcallsDialectTestcallsPlatformTest::testAnalyzeFakerRegressionscallsPlatformTest::testAnalyzePreservesKeywordNamesBeforeDotscallsPlatformTest::testAnalyzeRoundTripsCompleteStatementscalls
Relations§
Constant reads 14
- class-const SqlCatalog\Platform\MySql\SqlFormatter::format() packages/sql-catalog/src/Platform/MySql/SqlFormatter.php:30
- class-const SqlCatalog\Platform\PostgreSql\SqlFormatter::format() packages/sql-catalog/src/Platform/PostgreSql/SqlFormatter.php:30
- class-const SqlCatalog\Platform\Sqlite\SqlFormatter::format() packages/sql-catalog/src/Platform/Sqlite/SqlFormatter.php:30
- class-const SqlFormatter\Core\FormatOptions::__construct() packages/sql-formatter/src/Core/FormatOptions.php:27
- class-const SqlFormatter\Core\Formatter::format() packages/sql-formatter/src/Core/Formatter.php:37
- class-const SqlFormatter\Core\Layout\Elements::write() packages/sql-formatter/src/Core/Layout/Elements.php:32
- class-const SqlFormatter\Core\Layout\Elements::write() packages/sql-formatter/src/Core/Layout/Elements.php:41
- class-const SqlFormatter\Core\Layout\Elements::write() packages/sql-formatter/src/Core/Layout/Elements.php:48
- class-const SqlFormatter\Core\Layout\Policy::beforeHeader() packages/sql-formatter/src/Core/Layout/Policy.php:37
- class-const SqlFormatter\Core\Layout\Policy::afterHeader() packages/sql-formatter/src/Core/Layout/Policy.php:46
- class-const SqlFormatter\Core\Layout\Policy::afterHeader() packages/sql-formatter/src/Core/Layout/Policy.php:47
- class-const SqlFormatter\Core\Layout\Policy::afterHeader() packages/sql-formatter/src/Core/Layout/Policy.php:48
- class-const SqlFormatter\Core\Layout\Policy::afterHeader() packages/sql-formatter/src/Core/Layout/Policy.php:48
- class-const SqlFormatter\Core\Layout\Policy::bodyIndent() packages/sql-formatter/src/Core/Layout/Policy.php:57