Class ChCustomParserListener

java.lang.Object
org.pgcodekeeper.core.database.base.parser.CustomParserListener<ChDatabase>
org.pgcodekeeper.core.database.ch.parser.ChCustomParserListener
All Implemented Interfaces:
AntlrContextProcessor<CHParser.Ch_fileContext>, IChContextProcessor

public final class ChCustomParserListener extends CustomParserListener<ChDatabase> implements IChContextProcessor
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

    • ChCustomParserListener

      public ChCustomParserListener(ChDatabase database, String filename, ParserListenerMode mode, DiffSettings diffSettings)
      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
      diffSettings - unified context object containing settings, monitor, and error accumulator
  • Method Details