Class ChStatementFormatter

java.lang.Object
org.pgcodekeeper.core.database.base.formatter.StatementFormatter
org.pgcodekeeper.core.database.ch.formatter.ChStatementFormatter

public class ChStatementFormatter extends StatementFormatter
ClickHouse-specific implementation of SQL statement formatting. Handles formatting of ClickHouse SELECT statements with dialect-specific rules.
  • Constructor Details

    • ChStatementFormatter

      public ChStatementFormatter(int start, int stop, CHParser.Select_stmtContext selectStmtCtx, org.antlr.v4.runtime.CommonTokenStream tokenStream, IFormatConfiguration 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 statement
      tokenStream - The token stream containing all tokens
      config - The formatting configuration options
  • Method Details

    • getTokens

      public List<? extends org.antlr.v4.runtime.Token> getTokens()