public final class ChCreateView extends ChParserAbstract
Parser for ClickHouse CREATE VIEW statements. Handles creation of simple views, materialized views, and live views with support for columns, engines, destinations, definers, and SQL security settings.
  • Constructor Details

    • ChCreateView

      public ChCreateView(CHParser.Create_view_stmtContext ctx, ChDatabase db, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings)
      Creates a parser for ClickHouse CREATE VIEW statements.
      Parameters:
      ctx - the ANTLR parse tree context for the CREATE VIEW statement
      db - the ClickHouse database schema being processed
      stream - the token stream for whitespace normalization
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<ChDatabase>
    • parseObject

      public void parseObject(ChView view, boolean needFormatSql)
      Parses view details including query, comments, and view type-specific configurations. Handles simple views, materialized views, and live views with their respective options.
      Parameters:
      view - the view object to populate with parsed information
      needFormatSql - if true format select part.