Class CustomChSQLParserListener

java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.CustomParserListener<ChDatabase>
org.pgcodekeeper.core.parsers.antlr.ch.CustomChSQLParserListener
All Implemented Interfaces:
AntlrContextProcessor<CHParser.Ch_fileContext>, ChSqlContextProcessor

public final class CustomChSQLParserListener extends CustomParserListener<ChDatabase> implements ChSqlContextProcessor
Custom ANTLR listener for parsing ClickHouse SQL statements. Processes CREATE, ALTER, DROP statements and privilege grants, building a database schema model from the parsed statements.
  • Constructor Details

    • CustomChSQLParserListener

      public CustomChSQLParserListener(ChDatabase database, String filename, ParserListenerMode mode, List<Object> errors, IMonitor monitor, ISettings settings)
      Creates a new ClickHouse SQL parser listener.
      Parameters:
      database - the target database schema to populate
      filename - name of the file being parsed
      mode - parsing mode
      errors - list to collect parsing errors
      monitor - progress monitor for cancellation support
      settings - application settings
  • Method Details