Class QNameParserWrapper

java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.QNameParserWrapper

public class QNameParserWrapper extends Object
Wrapper class that provides simplified access to parsed qualified name components without exposing the underlying parser implementation. Handles both PostgreSQL and ClickHouse qualified name formats.
  • Method Details

    • parsePg

      public static QNameParserWrapper parsePg(String fullName)
      Creates a wrapper for parsing PostgreSQL qualified names.
      Parameters:
      fullName - the qualified name string to parse (e.g. "schema.table")
      Returns:
      wrapper containing parsed name components
    • parseCh

      public static QNameParserWrapper parseCh(String fullName)
      Creates a wrapper for parsing ClickHouse qualified names.
      Parameters:
      fullName - the qualified name string to parse
      Returns:
      wrapper containing parsed name components
    • parsePgOperator

      public static QNameParserWrapper parsePgOperator(String fullName)
      Creates a wrapper for parsing PostgreSQL operator names.
      Parameters:
      fullName - the operator name string to parse
      Returns:
      wrapper containing parsed name components
    • getFirstName

      public String getFirstName()
    • getSecondName

      public String getSecondName()
    • getSchemaName

      public String getSchemaName()
    • getThirdName

      public String getThirdName()
    • hasErrors

      public boolean hasErrors()