Class ChStatementFormatter
java.lang.Object
org.pgcodekeeper.core.formatter.StatementFormatter
org.pgcodekeeper.core.formatter.ch.ChStatementFormatter
ClickHouse-specific implementation of SQL statement formatting.
Handles formatting of ClickHouse SELECT statements with dialect-specific rules.
-
Constructor Summary
ConstructorsConstructorDescriptionChStatementFormatter(int start, int stop, CHParser.Select_stmtContext selectStmtCtx, org.antlr.v4.runtime.CommonTokenStream tokenStream, FormatConfiguration config) Constructs a new ClickHouse statement formatter for a SELECT statement. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.formatter.StatementFormatter
format, getChanges
-
Constructor Details
-
ChStatementFormatter
public ChStatementFormatter(int start, int stop, CHParser.Select_stmtContext selectStmtCtx, org.antlr.v4.runtime.CommonTokenStream tokenStream, FormatConfiguration config) Constructs a new ClickHouse statement formatter for a SELECT statement.- Parameters:
start- The starting offset in the source text (inclusive)stop- The ending offset in the source text (exclusive)selectStmtCtx- The ANTLR parse tree context for the SELECT statementtokenStream- The token stream containing all tokensconfig- The formatting configuration options
-
-
Method Details
-
getTokens
-