UNPKG

dt-sql-parser

Version:

SQL Parsers for BigData, built with antlr4

1,170 lines 460 kB
import * as antlr from "antlr4ng"; import { Token } from "antlr4ng"; import { PostgreSqlParserListener } from "./PostgreSqlParserListener.js"; import { PostgreSqlParserVisitor } from "./PostgreSqlParserVisitor.js"; import { SQLParserBase } from '../SQLParserBase'; export declare class PostgreSqlParser extends SQLParserBase { static readonly Dollar = 1; static readonly OPEN_PAREN = 2; static readonly CLOSE_PAREN = 3; static readonly OPEN_BRACKET = 4; static readonly CLOSE_BRACKET = 5; static readonly COMMA = 6; static readonly SEMI = 7; static readonly COLON = 8; static readonly STAR = 9; static readonly EQUAL = 10; static readonly DOT = 11; static readonly PLUS = 12; static readonly MINUS = 13; static readonly SLASH = 14; static readonly CARET = 15; static readonly LT = 16; static readonly GT = 17; static readonly LESS_LESS = 18; static readonly GREATER_GREATER = 19; static readonly COLON_EQUALS = 20; static readonly LESS_EQUALS = 21; static readonly EQUALS_GREATER = 22; static readonly GREATER_EQUALS = 23; static readonly DOT_DOT = 24; static readonly NOT_EQUALS = 25; static readonly TYPECAST = 26; static readonly PERCENT = 27; static readonly PARAM = 28; static readonly Operator = 29; static readonly KW_ALL = 30; static readonly KW_ANALYSE = 31; static readonly KW_ANALYZE = 32; static readonly KW_AND = 33; static readonly KW_ANY = 34; static readonly KW_ARRAY = 35; static readonly KW_AS = 36; static readonly KW_ASC = 37; static readonly KW_ASYMMETRIC = 38; static readonly KW_BOTH = 39; static readonly KW_CASE = 40; static readonly KW_CAST = 41; static readonly KW_CHECK = 42; static readonly KW_COLLATE = 43; static readonly KW_COLUMN = 44; static readonly KW_CONSTRAINT = 45; static readonly KW_CREATE = 46; static readonly KW_CURRENT_CATALOG = 47; static readonly KW_CURRENT_DATE = 48; static readonly KW_CURRENT_ROLE = 49; static readonly KW_CURRENT_TIME = 50; static readonly KW_CURRENT_TIMESTAMP = 51; static readonly KW_CURRENT_USER = 52; static readonly KW_DEFAULT = 53; static readonly KW_DEFERRABLE = 54; static readonly KW_DESC = 55; static readonly KW_DISTINCT = 56; static readonly KW_DO = 57; static readonly KW_ELSE = 58; static readonly KW_EXCEPT = 59; static readonly KW_FALSE = 60; static readonly KW_FETCH = 61; static readonly KW_FOR = 62; static readonly KW_FOREIGN = 63; static readonly KW_FROM = 64; static readonly KW_GRANT = 65; static readonly KW_GROUP = 66; static readonly KW_HAVING = 67; static readonly KW_IN = 68; static readonly KW_INITIALLY = 69; static readonly KW_INTERSECT = 70; static readonly KW_INTO = 71; static readonly KW_LATERAL = 72; static readonly KW_LEADING = 73; static readonly KW_LIMIT = 74; static readonly KW_LOCALTIME = 75; static readonly KW_LOCALTIMESTAMP = 76; static readonly KW_NOT = 77; static readonly KW_NULL = 78; static readonly KW_OFFSET = 79; static readonly KW_ON = 80; static readonly KW_ONLY = 81; static readonly KW_OR = 82; static readonly KW_ORDER = 83; static readonly KW_PLACING = 84; static readonly KW_PRIMARY = 85; static readonly KW_REFERENCES = 86; static readonly KW_RETURNING = 87; static readonly KW_SELECT = 88; static readonly KW_SESSION_USER = 89; static readonly KW_SOME = 90; static readonly KW_SYMMETRIC = 91; static readonly KW_TABLE = 92; static readonly KW_THEN = 93; static readonly KW_TO = 94; static readonly KW_TRAILING = 95; static readonly KW_TRUE = 96; static readonly KW_UNION = 97; static readonly KW_UNIQUE = 98; static readonly KW_USER = 99; static readonly KW_USING = 100; static readonly KW_VARIADIC = 101; static readonly KW_WHEN = 102; static readonly KW_WHERE = 103; static readonly KW_WINDOW = 104; static readonly KW_WITH = 105; static readonly KW_AUTHORIZATION = 106; static readonly KW_BINARY = 107; static readonly KW_COLLATION = 108; static readonly KW_CONCURRENTLY = 109; static readonly KW_CROSS = 110; static readonly KW_CURRENT_SCHEMA = 111; static readonly KW_FREEZE = 112; static readonly KW_FULL = 113; static readonly KW_ILIKE = 114; static readonly KW_INNER = 115; static readonly KW_IS = 116; static readonly KW_ISNULL = 117; static readonly KW_JOIN = 118; static readonly KW_LEFT = 119; static readonly KW_LIKE = 120; static readonly KW_NATURAL = 121; static readonly KW_NOTNULL = 122; static readonly KW_OUTER = 123; static readonly KW_OVER = 124; static readonly KW_OVERLAPS = 125; static readonly KW_RIGHT = 126; static readonly KW_SIMILAR = 127; static readonly KW_VERBOSE = 128; static readonly KW_ABORT = 129; static readonly KW_ABSOLUTE = 130; static readonly KW_ACCESS = 131; static readonly KW_ACTION = 132; static readonly KW_ADD = 133; static readonly KW_ADMIN = 134; static readonly KW_AFTER = 135; static readonly KW_AGGREGATE = 136; static readonly KW_ALSO = 137; static readonly KW_ALTER = 138; static readonly KW_ALWAYS = 139; static readonly KW_ASSERTION = 140; static readonly KW_ASSIGNMENT = 141; static readonly KW_AT = 142; static readonly KW_ATTRIBUTE = 143; static readonly KW_BACKWARD = 144; static readonly KW_BEFORE = 145; static readonly KW_BEGIN = 146; static readonly KW_BY = 147; static readonly KW_CACHE = 148; static readonly KW_CALLED = 149; static readonly KW_CASCADE = 150; static readonly KW_CASCADED = 151; static readonly KW_CATALOG = 152; static readonly KW_CHAIN = 153; static readonly KW_CHARACTERISTICS = 154; static readonly KW_CHECKPOINT = 155; static readonly KW_CLASS = 156; static readonly KW_CLOSE = 157; static readonly KW_CLUSTER = 158; static readonly KW_COMMENT = 159; static readonly KW_COMMENTS = 160; static readonly KW_COMMIT = 161; static readonly KW_COMMITTED = 162; static readonly KW_CONFIGURATION = 163; static readonly KW_CONNECTION = 164; static readonly KW_CONSTRAINTS = 165; static readonly KW_CONTENT = 166; static readonly KW_CONTINUE = 167; static readonly KW_CONVERSION = 168; static readonly KW_COPY = 169; static readonly KW_COST = 170; static readonly KW_CSV = 171; static readonly KW_CURSOR = 172; static readonly KW_CYCLE = 173; static readonly KW_DATA = 174; static readonly KW_DATABASE = 175; static readonly KW_DAY = 176; static readonly KW_DEALLOCATE = 177; static readonly KW_DECLARE = 178; static readonly KW_DEFAULTS = 179; static readonly KW_DEFERRED = 180; static readonly KW_DEFINER = 181; static readonly KW_DELETE = 182; static readonly KW_DELIMITER = 183; static readonly KW_DELIMITERS = 184; static readonly KW_DICTIONARY = 185; static readonly KW_DISABLE = 186; static readonly KW_DISCARD = 187; static readonly KW_DOCUMENT = 188; static readonly KW_DOMAIN = 189; static readonly KW_DOUBLE = 190; static readonly KW_DROP = 191; static readonly KW_EACH = 192; static readonly KW_ENABLE = 193; static readonly KW_ENCODING = 194; static readonly KW_ENCRYPTED = 195; static readonly KW_ENUM = 196; static readonly KW_ESCAPE = 197; static readonly KW_EVENT = 198; static readonly KW_EXCLUDE = 199; static readonly KW_EXCLUDING = 200; static readonly KW_EXCLUSIVE = 201; static readonly KW_EXECUTE = 202; static readonly KW_EXPLAIN = 203; static readonly KW_EXTENSION = 204; static readonly KW_EXTERNAL = 205; static readonly KW_FAMILY = 206; static readonly KW_FIRST = 207; static readonly KW_FOLLOWING = 208; static readonly KW_FORCE = 209; static readonly KW_FORWARD = 210; static readonly KW_FUNCTION = 211; static readonly KW_FUNCTIONS = 212; static readonly KW_GLOBAL = 213; static readonly KW_GRANTED = 214; static readonly KW_HANDLER = 215; static readonly KW_HEADER = 216; static readonly KW_HOLD = 217; static readonly KW_HOUR = 218; static readonly KW_IDENTITY = 219; static readonly KW_IF = 220; static readonly KW_IMMEDIATE = 221; static readonly KW_IMMUTABLE = 222; static readonly KW_IMPLICIT = 223; static readonly KW_INCLUDING = 224; static readonly KW_INCREMENT = 225; static readonly KW_INDEX = 226; static readonly KW_INDEXES = 227; static readonly KW_INHERIT = 228; static readonly KW_NOINHERIT = 229; static readonly KW_SUPERUSER = 230; static readonly KW_NOSUPERUSER = 231; static readonly KW_CREATEDB = 232; static readonly KW_NOCREATEDB = 233; static readonly KW_CREATEROLE = 234; static readonly KW_NOCREATEROLE = 235; static readonly KW_CREATEUSER = 236; static readonly KW_NOCREATEUSER = 237; static readonly KW_INHERITS = 238; static readonly KW_INLINE = 239; static readonly KW_INSENSITIVE = 240; static readonly KW_INSERT = 241; static readonly KW_INSTEAD = 242; static readonly KW_INVOKER = 243; static readonly KW_ISOLATION = 244; static readonly KW_KEY = 245; static readonly KW_LABEL = 246; static readonly KW_LANGUAGE = 247; static readonly KW_LARGE = 248; static readonly KW_LAST = 249; static readonly KW_LEAKPROOF = 250; static readonly KW_LEVEL = 251; static readonly KW_LISTEN = 252; static readonly KW_LOAD = 253; static readonly KW_LOCAL = 254; static readonly KW_LOCATION = 255; static readonly KW_LOCK = 256; static readonly KW_MAPPING = 257; static readonly KW_MATCH = 258; static readonly KW_MATERIALIZED = 259; static readonly KW_MAXVALUE = 260; static readonly KW_MINUTE = 261; static readonly KW_MINVALUE = 262; static readonly KW_MODE = 263; static readonly KW_MONTH = 264; static readonly KW_MOVE = 265; static readonly KW_NAME = 266; static readonly KW_NAMES = 267; static readonly KW_NEXT = 268; static readonly KW_NO = 269; static readonly KW_NOTHING = 270; static readonly KW_NOTIFY = 271; static readonly KW_NOWAIT = 272; static readonly KW_NULLS = 273; static readonly KW_OBJECT = 274; static readonly KW_OF = 275; static readonly KW_OFF = 276; static readonly KW_OIDS = 277; static readonly KW_OPERATOR = 278; static readonly KW_OPTION = 279; static readonly KW_OPTIONS = 280; static readonly KW_OWNED = 281; static readonly KW_OWNER = 282; static readonly KW_PARSER = 283; static readonly KW_PARTIAL = 284; static readonly KW_PARTITION = 285; static readonly KW_PASSING = 286; static readonly KW_PASSWORD = 287; static readonly KW_PLANS = 288; static readonly KW_PRECEDING = 289; static readonly KW_PREPARE = 290; static readonly KW_PREPARED = 291; static readonly KW_PRESERVE = 292; static readonly KW_PRIOR = 293; static readonly KW_PRIVILEGES = 294; static readonly KW_PROCEDURAL = 295; static readonly KW_PROCEDURE = 296; static readonly KW_PROGRAM = 297; static readonly KW_QUOTE = 298; static readonly KW_RANGE = 299; static readonly KW_READ = 300; static readonly KW_REASSIGN = 301; static readonly KW_RECHECK = 302; static readonly KW_RECURSIVE = 303; static readonly KW_REF = 304; static readonly KW_REFRESH = 305; static readonly KW_REINDEX = 306; static readonly KW_RELATIVE = 307; static readonly KW_RELEASE = 308; static readonly KW_RENAME = 309; static readonly KW_REPEATABLE = 310; static readonly KW_REPLACE = 311; static readonly KW_REPLICA = 312; static readonly KW_RESET = 313; static readonly KW_RESTART = 314; static readonly KW_RESTRICT = 315; static readonly KW_RETURNS = 316; static readonly KW_REVOKE = 317; static readonly KW_ROLE = 318; static readonly KW_ROLLBACK = 319; static readonly KW_ROWS = 320; static readonly KW_RULE = 321; static readonly KW_SAVEPOINT = 322; static readonly KW_SCHEMA = 323; static readonly KW_SCROLL = 324; static readonly KW_SEARCH = 325; static readonly KW_SECOND = 326; static readonly KW_SECURITY = 327; static readonly KW_SEQUENCE = 328; static readonly KW_SEQUENCES = 329; static readonly KW_SERIALIZABLE = 330; static readonly KW_SERVER = 331; static readonly KW_SESSION = 332; static readonly KW_SET = 333; static readonly KW_SHARE = 334; static readonly KW_SHOW = 335; static readonly KW_SIMPLE = 336; static readonly KW_SNAPSHOT = 337; static readonly KW_STABLE = 338; static readonly KW_STANDALONE = 339; static readonly KW_START = 340; static readonly KW_STATEMENT = 341; static readonly KW_STATISTICS = 342; static readonly KW_STDIN = 343; static readonly KW_STDOUT = 344; static readonly KW_STORAGE = 345; static readonly KW_STRICT = 346; static readonly KW_STRIP = 347; static readonly KW_SYSID = 348; static readonly KW_SYSTEM = 349; static readonly KW_TABLES = 350; static readonly KW_TABLESPACE = 351; static readonly KW_TEMP = 352; static readonly KW_TEMPLATE = 353; static readonly KW_TEMPORARY = 354; static readonly KW_TEXT = 355; static readonly KW_TRANSACTION = 356; static readonly KW_TRIGGER = 357; static readonly KW_TRUNCATE = 358; static readonly KW_TRUSTED = 359; static readonly KW_TYPE = 360; static readonly KW_TYPES = 361; static readonly KW_UNBOUNDED = 362; static readonly KW_UNCOMMITTED = 363; static readonly KW_UNENCRYPTED = 364; static readonly KW_UNKNOWN = 365; static readonly KW_UNLISTEN = 366; static readonly KW_UNLOGGED = 367; static readonly KW_UNTIL = 368; static readonly KW_UPDATE = 369; static readonly KW_VACUUM = 370; static readonly KW_VALID = 371; static readonly KW_VALIDATE = 372; static readonly KW_VALIDATOR = 373; static readonly KW_VARYING = 374; static readonly KW_VERSION = 375; static readonly KW_VIEW = 376; static readonly KW_VOLATILE = 377; static readonly KW_WHITESPACE = 378; static readonly KW_WITHOUT = 379; static readonly KW_WORK = 380; static readonly KW_WRAPPER = 381; static readonly KW_WRITE = 382; static readonly KW_XML = 383; static readonly KW_YEAR = 384; static readonly KW_YES = 385; static readonly KW_ZONE = 386; static readonly KW_BETWEEN = 387; static readonly KW_BIGINT = 388; static readonly KW_BIT = 389; static readonly KW_BOOLEAN = 390; static readonly KW_CHAR = 391; static readonly KW_CHARACTER = 392; static readonly KW_COALESCE = 393; static readonly KW_DEC = 394; static readonly KW_DECIMAL = 395; static readonly KW_EXISTS = 396; static readonly KW_EXTRACT = 397; static readonly KW_FLOAT = 398; static readonly KW_GREATEST = 399; static readonly KW_INOUT = 400; static readonly KW_INT = 401; static readonly KW_INTEGER = 402; static readonly KW_INTERVAL = 403; static readonly KW_LEAST = 404; static readonly KW_NATIONAL = 405; static readonly KW_NCHAR = 406; static readonly KW_NONE = 407; static readonly KW_NULLIF = 408; static readonly KW_NUMERIC = 409; static readonly KW_OVERLAY = 410; static readonly KW_POSITION = 411; static readonly KW_PRECISION = 412; static readonly KW_REAL = 413; static readonly KW_ROW = 414; static readonly KW_SETOF = 415; static readonly KW_SMALLINT = 416; static readonly KW_SUBSTRING = 417; static readonly KW_TIME = 418; static readonly KW_TIMESTAMP = 419; static readonly KW_TREAT = 420; static readonly KW_TRIM = 421; static readonly KW_VALUES = 422; static readonly KW_VARCHAR = 423; static readonly KW_XMLATTRIBUTES = 424; static readonly KW_XMLCONCAT = 425; static readonly KW_XMLELEMENT = 426; static readonly KW_XMLEXISTS = 427; static readonly KW_XMLFOREST = 428; static readonly KW_XMLPARSE = 429; static readonly KW_XMLPI = 430; static readonly KW_XMLROOT = 431; static readonly KW_XMLSERIALIZE = 432; static readonly KW_CALL = 433; static readonly KW_CURRENT = 434; static readonly KW_ATTACH = 435; static readonly KW_DETACH = 436; static readonly KW_EXPRESSION = 437; static readonly KW_GENERATED = 438; static readonly KW_LOGGED = 439; static readonly KW_STORED = 440; static readonly KW_INCLUDE = 441; static readonly KW_ROUTINE = 442; static readonly KW_TRANSFORM = 443; static readonly KW_IMPORT = 444; static readonly KW_POLICY = 445; static readonly KW_METHOD = 446; static readonly KW_REFERENCING = 447; static readonly KW_NEW = 448; static readonly KW_OLD = 449; static readonly KW_VALUE = 450; static readonly KW_SUBSCRIPTION = 451; static readonly KW_PUBLICATION = 452; static readonly KW_OUT = 453; static readonly KW_END = 454; static readonly KW_ROUTINES = 455; static readonly KW_SCHEMAS = 456; static readonly KW_PROCEDURES = 457; static readonly KW_INPUT = 458; static readonly KW_SUPPORT = 459; static readonly KW_PARALLEL = 460; static readonly KW_SQL = 461; static readonly KW_DEPENDS = 462; static readonly KW_OVERRIDING = 463; static readonly KW_CONFLICT = 464; static readonly KW_SKIP = 465; static readonly KW_LOCKED = 466; static readonly KW_TIES = 467; static readonly KW_ROLLUP = 468; static readonly KW_CUBE = 469; static readonly KW_GROUPING = 470; static readonly KW_SETS = 471; static readonly KW_TABLESAMPLE = 472; static readonly KW_ORDINALITY = 473; static readonly KW_XMLTABLE = 474; static readonly KW_COLUMNS = 475; static readonly KW_XMLNAMESPACES = 476; static readonly KW_ROWTYPE = 477; static readonly KW_NORMALIZED = 478; static readonly KW_WITHIN = 479; static readonly KW_FILTER = 480; static readonly KW_GROUPS = 481; static readonly KW_OTHERS = 482; static readonly KW_NFC = 483; static readonly KW_NFD = 484; static readonly KW_NFKC = 485; static readonly KW_NFKD = 486; static readonly KW_UESCAPE = 487; static readonly KW_VIEWS = 488; static readonly KW_NORMALIZE = 489; static readonly KW_DUMP = 490; static readonly KW_PRINT_STRICT_PARAMS = 491; static readonly KW_VARIABLE_CONFLICT = 492; static readonly KW_ERROR = 493; static readonly KW_USE_VARIABLE = 494; static readonly KW_USE_COLUMN = 495; static readonly KW_ALIAS = 496; static readonly KW_CONSTANT = 497; static readonly KW_PERFORM = 498; static readonly KW_GET = 499; static readonly KW_DIAGNOSTICS = 500; static readonly KW_STACKED = 501; static readonly KW_ELSIF = 502; static readonly KW_WHILE = 503; static readonly KW_REVERSE = 504; static readonly KW_FOREACH = 505; static readonly KW_SLICE = 506; static readonly KW_EXIT = 507; static readonly KW_RETURN = 508; static readonly KW_QUERY = 509; static readonly KW_RAISE = 510; static readonly KW_SQLSTATE = 511; static readonly KW_DEBUG = 512; static readonly KW_LOG = 513; static readonly KW_INFO = 514; static readonly KW_NOTICE = 515; static readonly KW_WARNING = 516; static readonly KW_EXCEPTION = 517; static readonly KW_ASSERT = 518; static readonly KW_LOOP = 519; static readonly KW_OPEN = 520; static readonly KW_PEFERENCES = 521; static readonly KW_USAGE = 522; static readonly KW_CONNECT = 523; static readonly KW_PUBLIC = 524; static readonly KW_MERGE = 525; static readonly KW_MATCHED = 526; static readonly KW_BREADTH = 527; static readonly KW_DEPTH = 528; static readonly KW_UNSAFE = 529; static readonly KW_RESTRICTED = 530; static readonly KW_SAFE = 531; static readonly KW_FINALIZE = 532; static readonly KW_MODULUS = 533; static readonly KW_REMAINDER = 534; static readonly KW_LOGIN = 535; static readonly KW_NOLOGIN = 536; static readonly KW_REPLICATION = 537; static readonly KW_NOREPLICATION = 538; static readonly KW_BYPASSRLS = 539; static readonly KW_NOBYPASSRLS = 540; static readonly KW_PERMISSIVE = 541; static readonly KW_RESTRICTIVE = 542; static readonly KW_COMPRESSION = 543; static readonly KW_PLAIN = 544; static readonly KW_EXTENDED = 545; static readonly KW_MAIN = 546; static readonly KW_SKIP_LOCKED = 547; static readonly KW_BUFFER_USAGE_LIMIT = 548; static readonly Identifier = 549; static readonly QuotedIdentifier = 550; static readonly UnterminatedQuotedIdentifier = 551; static readonly InvalidQuotedIdentifier = 552; static readonly InvalidUnterminatedQuotedIdentifier = 553; static readonly UnicodeQuotedIdentifier = 554; static readonly UnterminatedUnicodeQuotedIdentifier = 555; static readonly InvalidUnicodeQuotedIdentifier = 556; static readonly InvalidUnterminatedUnicodeQuotedIdentifier = 557; static readonly StringConstant = 558; static readonly UnterminatedStringConstant = 559; static readonly UnicodeEscapeStringConstant = 560; static readonly UnterminatedUnicodeEscapeStringConstant = 561; static readonly BeginDollarStringConstant = 562; static readonly BinaryStringConstant = 563; static readonly UnterminatedBinaryStringConstant = 564; static readonly InvalidBinaryStringConstant = 565; static readonly InvalidUnterminatedBinaryStringConstant = 566; static readonly HexadecimalStringConstant = 567; static readonly UnterminatedHexadecimalStringConstant = 568; static readonly InvalidHexadecimalStringConstant = 569; static readonly InvalidUnterminatedHexadecimalStringConstant = 570; static readonly Integral = 571; static readonly NumericFail = 572; static readonly Numeric = 573; static readonly PLSQLVARIABLENAME = 574; static readonly PLSQLIDENTIFIER = 575; static readonly Whitespace = 576; static readonly Newline = 577; static readonly LineComment = 578; static readonly BlockComment = 579; static readonly UnterminatedBlockComment = 580; static readonly MetaCommand = 581; static readonly EndMetaCommand = 582; static readonly ErrorCharacter = 583; static readonly EscapeStringConstant = 584; static readonly UnterminatedEscapeStringConstant = 585; static readonly InvalidEscapeStringConstant = 586; static readonly InvalidUnterminatedEscapeStringConstant = 587; static readonly DollarText = 588; static readonly EndDollarStringConstant = 589; static readonly AfterEscapeStringConstantWithNewlineMode_Continued = 590; static readonly RULE_program = 0; static readonly RULE_singleStmt = 1; static readonly RULE_stmt = 2; static readonly RULE_callstmt = 3; static readonly RULE_createrolestmt = 4; static readonly RULE_alteroptroleelem = 5; static readonly RULE_createoptroleelem = 6; static readonly RULE_createuserstmt = 7; static readonly RULE_alterrolestmt = 8; static readonly RULE_alterrolesetstmt = 9; static readonly RULE_alterroutinestmt = 10; static readonly RULE_alter_routine_cluase = 11; static readonly RULE_routine_action = 12; static readonly RULE_creategroupstmt = 13; static readonly RULE_altergroupstmt = 14; static readonly RULE_createschemastmt = 15; static readonly RULE_schema_name_create = 16; static readonly RULE_schema_stmt = 17; static readonly RULE_variablesetstmt = 18; static readonly RULE_set_rest = 19; static readonly RULE_generic_set = 20; static readonly RULE_set_rest_more = 21; static readonly RULE_var_name = 22; static readonly RULE_var_list = 23; static readonly RULE_var_value = 24; static readonly RULE_iso_level = 25; static readonly RULE_opt_boolean_or_string_column = 26; static readonly RULE_opt_boolean_or_string = 27; static readonly RULE_zone_value = 28; static readonly RULE_nonreservedword_or_sconst = 29; static readonly RULE_variableresetstmt = 30; static readonly RULE_reset_rest = 31; static readonly RULE_setresetclause = 32; static readonly RULE_functionsetresetclause = 33; static readonly RULE_variableshowstmt = 34; static readonly RULE_constraintssetstmt = 35; static readonly RULE_checkpointstmt = 36; static readonly RULE_discardstmt = 37; static readonly RULE_altertablestmt = 38; static readonly RULE_alter_table_cmds = 39; static readonly RULE_partition_bound_spec = 40; static readonly RULE_partition_bound_cluase = 41; static readonly RULE_partition_bound_choose = 42; static readonly RULE_partition_with_cluase = 43; static readonly RULE_partition_cmd = 44; static readonly RULE_index_partition_cmd = 45; static readonly RULE_alter_table_cmd = 46; static readonly RULE_alter_column_default = 47; static readonly RULE_opt_drop_behavior = 48; static readonly RULE_opt_collate_clause = 49; static readonly RULE_reloptions = 50; static readonly RULE_opt_reloptions = 51; static readonly RULE_reloption_elem = 52; static readonly RULE_partitionboundspec = 53; static readonly RULE_altercompositetypestmt = 54; static readonly RULE_alter_type_cmd = 55; static readonly RULE_closeportalstmt = 56; static readonly RULE_copystmt = 57; static readonly RULE_copy_options = 58; static readonly RULE_copy_generic_opt_elem = 59; static readonly RULE_createstmt = 60; static readonly RULE_opttemp = 61; static readonly RULE_opttypedtableelementlist = 62; static readonly RULE_tableelementlist = 63; static readonly RULE_tableelement = 64; static readonly RULE_typedtableelement = 65; static readonly RULE_column_def = 66; static readonly RULE_colconstraint = 67; static readonly RULE_colconstraintelem = 68; static readonly RULE_generated_when = 69; static readonly RULE_tablelikeoption = 70; static readonly RULE_constraintelem = 71; static readonly RULE_opt_column_list = 72; static readonly RULE_opt_column_list_create = 73; static readonly RULE_column_list = 74; static readonly RULE_opt_c_include = 75; static readonly RULE_key_match = 76; static readonly RULE_exclusionconstraintelem = 77; static readonly RULE_key_actions = 78; static readonly RULE_key_update = 79; static readonly RULE_key_delete = 80; static readonly RULE_key_action = 81; static readonly RULE_optinherit = 82; static readonly RULE_partitionspec = 83; static readonly RULE_part_elem = 84; static readonly RULE_table_access_method_clause = 85; static readonly RULE_optwith = 86; static readonly RULE_oncommitoption = 87; static readonly RULE_opttablespace = 88; static readonly RULE_optconstablespace = 89; static readonly RULE_existingindex = 90; static readonly RULE_createstatsstmt = 91; static readonly RULE_alterstatsstmt = 92; static readonly RULE_createasstmt = 93; static readonly RULE_create_as_target = 94; static readonly RULE_opt_with_data = 95; static readonly RULE_creatematviewstmt = 96; static readonly RULE_refreshmatviewstmt = 97; static readonly RULE_createseqstmt = 98; static readonly RULE_alterseqstmt = 99; static readonly RULE_seqoptelem = 100; static readonly RULE_numericonly = 101; static readonly RULE_createplangstmt = 102; static readonly RULE_createtablespacestmt = 103; static readonly RULE_createextensionstmt = 104; static readonly RULE_alterextensionstmt = 105; static readonly RULE_alterextensioncontentsstmt = 106; static readonly RULE_createfdwstmt = 107; static readonly RULE_fdw_option = 108; static readonly RULE_alterfdwstmt = 109; static readonly RULE_create_generic_options = 110; static readonly RULE_alter_generic_options = 111; static readonly RULE_alter_generic_option_elem = 112; static readonly RULE_generic_option_elem = 113; static readonly RULE_createforeignserverstmt = 114; static readonly RULE_foreign_server_version = 115; static readonly RULE_alterforeignserverstmt = 116; static readonly RULE_createforeigntablestmt = 117; static readonly RULE_importforeignschemastmt = 118; static readonly RULE_createusermappingstmt = 119; static readonly RULE_alterusermappingstmt = 120; static readonly RULE_createpolicystmt = 121; static readonly RULE_alterpolicystmt = 122; static readonly RULE_alterprocedurestmt = 123; static readonly RULE_procedure_action = 124; static readonly RULE_rowsecurityoptionalexpr = 125; static readonly RULE_rowsecurityoptionalwithcheck = 126; static readonly RULE_createamstmt = 127; static readonly RULE_createtrigstmt = 128; static readonly RULE_triggeractiontime = 129; static readonly RULE_triggerevents = 130; static readonly RULE_triggeroneevent = 131; static readonly RULE_triggerwhen = 132; static readonly RULE_function_or_procedure = 133; static readonly RULE_triggerfuncargs = 134; static readonly RULE_triggerfuncarg = 135; static readonly RULE_constraintattributeElem = 136; static readonly RULE_createeventtrigstmt = 137; static readonly RULE_event_trigger_when_item = 138; static readonly RULE_altereventtrigstmt = 139; static readonly RULE_createassertionstmt = 140; static readonly RULE_definestmt = 141; static readonly RULE_definition = 142; static readonly RULE_def_elem = 143; static readonly RULE_def_arg = 144; static readonly RULE_old_aggr_elem = 145; static readonly RULE_alterenumstmt = 146; static readonly RULE_opt_if_not_exists = 147; static readonly RULE_createopclassstmt = 148; static readonly RULE_opclass_item = 149; static readonly RULE_createopfamilystmt = 150; static readonly RULE_alteropfamilystmt = 151; static readonly RULE_opclass_drop = 152; static readonly RULE_reassignownedstmt = 153; static readonly RULE_dropstmt = 154; static readonly RULE_object_type_any_name = 155; static readonly RULE_object_type_name = 156; static readonly RULE_any_name_list = 157; static readonly RULE_any_name = 158; static readonly RULE_attrs = 159; static readonly RULE_truncatestmt = 160; static readonly RULE_truncate_table = 161; static readonly RULE_commentstmt = 162; static readonly RULE_seclabelstmt = 163; static readonly RULE_fetchstmt = 164; static readonly RULE_fetch_args = 165; static readonly RULE_from_in = 166; static readonly RULE_grantstmt = 167; static readonly RULE_revokestmt = 168; static readonly RULE_privileges = 169; static readonly RULE_beforeprivilegeselect = 170; static readonly RULE_privilege = 171; static readonly RULE_privilege_target = 172; static readonly RULE_grantee_list = 173; static readonly RULE_grantrolestmt = 174; static readonly RULE_revokerolestmt = 175; static readonly RULE_alterdefaultprivilegesstmt = 176; static readonly RULE_defaclaction = 177; static readonly RULE_defacl_privilege_target = 178; static readonly RULE_indexstmt = 179; static readonly RULE_index_params = 180; static readonly RULE_index_elem = 181; static readonly RULE_createfunctionstmt = 182; static readonly RULE_opt_or_replace = 183; static readonly RULE_func_args = 184; static readonly RULE_func_args_list = 185; static readonly RULE_routine_with_argtypes_list = 186; static readonly RULE_routine_with_argtypes = 187; static readonly RULE_procedure_with_argtypes_list = 188; static readonly RULE_procedure_with_argtypes = 189; static readonly RULE_function_with_argtypes_list = 190; static readonly RULE_function_with_argtypes = 191; static readonly RULE_func_arg = 192; static readonly RULE_arg_class = 193; static readonly RULE_func_type = 194; static readonly RULE_func_arg_with_default = 195; static readonly RULE_aggr_args = 196; static readonly RULE_aggregate_with_argtypes = 197; static readonly RULE_common_func_opt_item = 198; static readonly RULE_createfunc_opt_item = 199; static readonly RULE_opt_definition = 200; static readonly RULE_table_func_column = 201; static readonly RULE_alterfunctionstmt = 202; static readonly RULE_removefuncstmt = 203; static readonly RULE_removeaggrstmt = 204; static readonly RULE_removeoperstmt = 205; static readonly RULE_oper_argtypes = 206; static readonly RULE_any_operator = 207; static readonly RULE_operator_with_argtypes = 208; static readonly RULE_dostmt = 209; static readonly RULE_createcaststmt = 210; static readonly RULE_opt_if_exists = 211; static readonly RULE_createtransformstmt = 212; static readonly RULE_sql_with_function = 213; static readonly RULE_reindexstmt = 214; static readonly RULE_altertblspcstmt = 215; static readonly RULE_renamestmt = 216; static readonly RULE_alterobjectdependsstmt = 217; static readonly RULE_alterobjectschemastmt = 218; static readonly RULE_alteroperatorstmt = 219; static readonly RULE_operator_def_list = 220; static readonly RULE_operator_def_elem = 221; static readonly RULE_altertypestmt = 222; static readonly RULE_alterownerstmt = 223; static readonly RULE_createpublicationstmt = 224; static readonly RULE_alterpublicationstmt = 225; static readonly RULE_createsubscriptionstmt = 226; static readonly RULE_altersubscriptionstmt = 227; static readonly RULE_rulestmt = 228; static readonly RULE_ruleactionstmt = 229; static readonly RULE_notifystmt = 230; static readonly RULE_notify_payload = 231; static readonly RULE_listenstmt = 232; static readonly RULE_unlistenstmt = 233; static readonly RULE_transactionstmt = 234; static readonly RULE_opt_transaction = 235; static readonly RULE_transaction_mode_item = 236; static readonly RULE_transaction_mode_list = 237; static readonly RULE_viewstmt = 238; static readonly RULE_loadstmt = 239; static readonly RULE_createdbstmt = 240; static readonly RULE_createdb_opt_item = 241; static readonly RULE_alterdatabasestmt = 242; static readonly RULE_alterdatabasesetstmt = 243; static readonly RULE_altercollationstmt = 244; static readonly RULE_altersystemstmt = 245; static readonly RULE_createdomainstmt = 246; static readonly RULE_alterdomainstmt = 247; static readonly RULE_altertsdictionarystmt = 248; static readonly RULE_altertsconfigurationstmt = 249; static readonly RULE_createconversionstmt = 250; static readonly RULE_clusterstmt = 251; static readonly RULE_vacuumstmt = 252; static readonly RULE_analyzestmt = 253; static readonly RULE_analyze_keyword = 254; static readonly RULE_vac_analyze_option_elem = 255; static readonly RULE_analyze_option_elem = 256; static readonly RULE_opt_verbose = 257; static readonly RULE_vacuum_relation = 258; static readonly RULE_vacuum_relation_list = 259; static readonly RULE_explainstmt = 260; static readonly RULE_explainablestmt = 261; static readonly RULE_explain_option_list = 262; static readonly RULE_preparestmt = 263; static readonly RULE_prep_type_clause = 264; static readonly RULE_preparablestmt = 265; static readonly RULE_executestmt = 266; static readonly RULE_execute_param_clause = 267; static readonly RULE_deallocatestmt = 268; static readonly RULE_insertstmt = 269; static readonly RULE_insert_rest = 270; static readonly RULE_insert_column_list = 271; static readonly RULE_insert_column_item = 272; static readonly RULE_returning_clause = 273; static readonly RULE_deletestmt = 274; static readonly RULE_lockstmt = 275; static readonly RULE_updatestmt = 276; static readonly RULE_set_clause_list = 277; static readonly RULE_set_clause = 278; static readonly RULE_declarecursorstmt = 279; static readonly RULE_selectstmt = 280; static readonly RULE_select_with_parens = 281; static readonly RULE_select_no_parens = 282; static readonly RULE_select_clause = 283; static readonly RULE_simple_select = 284; static readonly RULE_set_operator_with_all_or_distinct = 285; static readonly RULE_with_clause = 286; static readonly RULE_common_table_expr = 287; static readonly RULE_search_cluase = 288; static readonly RULE_cycle_cluase = 289; static readonly RULE_into_clause = 290; static readonly RULE_opttempTableName = 291; static readonly RULE_distinct_clause = 292; static readonly RULE_sort_clause = 293; static readonly RULE_sortby = 294; static readonly RULE_select_limit = 295; static readonly RULE_limit_clause = 296; static readonly RULE_fetch_clause = 297; static readonly RULE_offset_clause = 298; static readonly RULE_select_fetch_first_value = 299; static readonly RULE_group_clause = 300; static readonly RULE_group_by_list = 301; static readonly RULE_group_by_item = 302; static readonly RULE_for_locking_clause = 303; static readonly RULE_values_clause = 304; static readonly RULE_from_clause = 305; static readonly RULE_from_list = 306; static readonly RULE_table_ref = 307; static readonly RULE_alias_clause = 308; static readonly RULE_func_alias_clause = 309; static readonly RULE_join_type = 310; static readonly RULE_join_qual = 311; static readonly RULE_relation_expr = 312; static readonly RULE_publication_relation_expr = 313; static readonly RULE_relation_expr_list = 314; static readonly RULE_relation_expr_opt_alias = 315; static readonly RULE_tablesample_clause = 316; static readonly RULE_func_table = 317; static readonly RULE_rowsfrom_item = 318; static readonly RULE_where_clause = 319; static readonly RULE_where_or_current_clause = 320; static readonly RULE_tablefuncelementlist = 321; static readonly RULE_tablefuncelement = 322; static readonly RULE_xmltable = 323; static readonly RULE_xmltable_column_el = 324; static readonly RULE_xml_namespace_el = 325; static readonly RULE_typename = 326; static readonly RULE_simpletypename = 327; static readonly RULE_consttypename = 328; static readonly RULE_numeric = 329; static readonly RULE_opt_float = 330; static readonly RULE_bit = 331; static readonly RULE_character = 332; static readonly RULE_constdatetime = 333; static readonly RULE_opt_interval = 334; static readonly RULE_interval_second = 335; static readonly RULE_comparisonOperator = 336; static readonly RULE_expression = 337; static readonly RULE_booleanExpression = 338; static readonly RULE_predicate = 339; static readonly RULE_valueExpression = 340; static readonly RULE_primaryExpression = 341; static readonly RULE_func_application = 342; static readonly RULE_func_expr = 343; static readonly RULE_func_expr_windowless = 344; static readonly RULE_func_expr_common_subexpr = 345; static readonly RULE_xml_attribute_list = 346; static readonly RULE_xml_attribute_el = 347; static readonly RULE_document_or_content = 348; static readonly RULE_xmlexists_argument = 349; static readonly RULE_xml_passing_mech = 350; static readonly RULE_window_clause = 351; static readonly RULE_window_definition = 352; static readonly RULE_over_clause = 353; static readonly RULE_window_specification = 354; static readonly RULE_opt_frame_clause = 355; static readonly RULE_frame_bound = 356; static readonly RULE_row = 357; static readonly RULE_explicit_row = 358; static readonly RULE_sub_type = 359; static readonly RULE_all_op = 360; static readonly RULE_mathop = 361; static readonly RULE_qual_op = 362; static readonly RULE_qual_all_op = 363; static readonly RULE_subquery_Op = 364; static readonly RULE_expr_list = 365; static readonly RULE_column_expr = 366; static readonly RULE_column_expr_noparen = 367; static readonly RULE_func_arg_list = 368; static readonly RULE_func_arg_expr = 369; static readonly RULE_array_expr = 370; static readonly RULE_extract_arg = 371; static readonly RULE_unicode_normal_form = 372; static readonly RULE_substr_list = 373; static readonly RULE_when_clause = 374; static readonly RULE_indirection_el = 375; static readonly RULE_indirection = 376; static readonly RULE_opt_indirection = 377; static readonly RULE_target_list = 378; static readonly RULE_target_el = 379; static readonly RULE_qualified_name_list = 380; static readonly RULE_table_name_list = 381; static readonly RULE_schema_name_list = 382; static readonly RULE_database_nameList = 383; static readonly RULE_tablespace_name_create = 384; static readonly RULE_tablespace_name = 385; static readonly RULE_table_name_create = 386; static readonly RULE_table_name = 387; static readonly RULE_view_name_create = 388; static readonly RULE_view_name = 389; static readonly RULE_qualified_name = 390; static readonly RULE_tablespace_name_list = 391; static readonly RULE_name_list = 392; static readonly RULE_database_name_create = 393; static readonly RULE_database_name = 394; static readonly RULE_schema_name = 395; static readonly RULE_routine_name_create = 396; static readonly RULE_routine_name = 397; static readonly RULE_procedure_name = 398; static readonly RULE_procedure_name_create = 399; static readonly RULE_column_name = 400; static readonly RULE_column_name_create = 401; static readonly RULE_function_name_create = 402; static readonly RULE_function_name = 403; static readonly RULE_sconst = 404; static readonly RULE_anysconst = 405; static readonly RULE_signediconst = 406; static readonly RULE_rolespec = 407; static readonly RULE_role_list = 408; static readonly RULE_colid = 409; static readonly RULE_type_function_name = 410; static readonly RULE_nonreservedword = 411; static readonly RULE_collabel = 412; static readonly RULE_identifier = 413; static readonly RULE_unreserved_keyword = 414; static readonly RULE_col_name_keyword = 415; static readonly RULE_type_func_name_keyword = 416; static readonly RULE_reserved_keyword = 417; static readonly RULE_pl_block = 418; static readonly RULE_label_decl = 419; static readonly RULE_decl_statement = 420; static readonly RULE_decl_cursor_arg = 421; static readonly RULE_assign_operator = 422; static readonly RULE_proc_stmt = 423; static readonly RULE_stmt_perform = 424; static readonly RULE_stmt_call = 425; static readonly RULE_stmt_assign = 426; static readonly RULE_stmt_getdiag = 427; static readonly RULE_getdiag_list_item = 428; static readonly RULE_assign_var = 429; static readonly RULE_stmt_if = 430; static readonly RULE_stmt_else = 431; static readonly RULE_stmt_case = 432; static readonly RULE_stmt_loop_while_for = 433; static readonly RULE_for_control = 434; static readonly RULE_stmt_foreach_a = 435; static readonly RULE_stmt_exit = 436; static readonly RULE_stmt_return = 437; static readonly RULE_stmt_raise = 438; static readonly RULE_opt_raise_using_elem = 439; static readonly RULE_stmt_assert = 440; static readonly RULE_loop_body = 441; static readonly RULE_stmt_execsql = 442; static readonly RULE_stmt_dynexecute = 443; static readonly RULE_opt_execute_into = 444; static readonly RULE_stmt_open = 445; static readonly RULE_opt_open_bound_list_item = 446; static readonly RULE_stmt_fetch = 447; static readonly RULE_opt_fetch_direction = 448; static readonly RULE_stmt_move = 449; static readonly RULE_mergestmt = 450; static readonly RULE_data_source = 451; static readonly RULE_merge_when_clause = 452; static readonly RULE_merge_insert = 453; static readonly RULE_merge_update = 454; static readonly RULE_default_values_or_values = 455; static readonly RULE_exprofdefault = 456; static readonly RULE_stmt_close = 457; static readonly RULE_stmt_null = 458; static readonly RULE_stmt_commit_or_rollback = 459; static readonly RULE_stmt_set = 460; static readonly RULE_cursor_variable = 461; static readonly RULE_exception_sect = 462; static readonly RULE_proc_condition = 463; static readonly RULE_any_identifier = 464; static readonly RULE_sql_expression = 465; static readonly literalNames: (string | null)[]; static readonly symbolicNames: (string | null)[]; static readonly ruleNames: string[]; get grammarFileName(): string; get literalNames(): (string | null)[]; get symbolicNames(): (string | null)[]; get ruleNames(): string[]; get serializedATN(): number[]; protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException; constructor(input: antlr.TokenStream); program(): ProgramContext; singleStmt(): SingleStmtContext; stmt(): StmtContext; callstmt(): CallstmtContext; createrolestmt(): CreaterolestmtContext; alteroptroleelem(): AlteroptroleelemContext; createoptroleelem(): CreateoptroleelemContext; createuserstmt(): CreateuserstmtContext; alterrolestmt(): AlterrolestmtContext; alterrolesetstmt(): AlterrolesetstmtContext; alterroutinestmt(): AlterroutinestmtContext; alter_routine_cluase(): Alter_routine_cluaseContext; routine_action(): Routine_actionContext; creategroupstmt(): CreategroupstmtContext; altergroupstmt(): AltergroupstmtContext; createschemastmt(): CreateschemastmtContext; schema_name_create(): Schema_name_createContext; schema_stmt(): Schema_stmtContext; variablesetstmt(): VariablesetstmtContext; set_rest(): Set_restContext; generic_set(): Generic_setContext; set_rest_more(): Set_rest_moreContext; var_name(): Var_nameContext; var_list(): Var_listContext; var_value(): Var_valueContext; iso_level(): Iso_levelContext; opt_boolean_or_string_column(): Opt_boolean_or_string_columnContext; opt_boolean_or_string(): Opt_boolean_or_stringContext; zone_value(): Zone_valueContext; nonreservedword_or_sconst(): Nonreservedword_or_sconstContext; variableresetstmt(): VariableresetstmtContext; reset_rest(): Reset_restContext; setresetclause(): SetresetclauseContext; functionsetresetclause(): FunctionsetresetclauseContext; variableshowstmt(): VariableshowstmtContext; constraintssetstmt(): ConstraintssetstmtContext; checkpointstmt(): CheckpointstmtContext; discardstmt(): DiscardstmtContext; altertablestmt(): AltertablestmtContext; alter_table_cmds(): Alter_table_cmdsContext; partition_bound_spec(): Partition_bound_specContext; partition_bound_cluase(): Partition_bound_cluaseContext; partition_bound_choose(): Partition_bound_chooseContext; partition_with_cluase(): Partition_with_cluaseContext; partition_cmd(): Partition_cmdContext; index_partition_cmd(): Index_partition_cmdContext; alter_table_cmd(): Alter_table_cmdContext; alter_column_default(): Alter_column_defaultContext; opt_drop_behavior(): Opt_drop_behaviorContext; opt_collate_clause(): Opt_collate_clauseContext; reloptions(): ReloptionsContext; opt_reloptions(): Opt_reloptionsContext; reloption_elem(): Reloption_elemContext; partitionboundspec(): PartitionboundspecContext; altercompositetypestmt(): AltercompositetypestmtContext; alter_type_cmd(): Alter_type_cmdContext; closeportalstmt(): CloseportalstmtContext; copystmt(): CopystmtContext; copy_options(): Copy_optionsContext; copy_generic_opt_elem(): Copy_generic_opt_elemContext; createstmt(): CreatestmtContext; opttemp(): OpttempContext; opttypedtableelementlist(): OpttypedtableelementlistContext; tableelementlist(): TableelementlistContext; tableelement(): TableelementContext; typedtableelement(): TypedtableelementContext; column_def(): Column_defContext; colconstraint(): ColconstraintContext; colconstraintelem(): ColconstraintelemContext; generated_when(): Generated_whenContext; tablelikeoption(): TablelikeoptionContext; constraintelem(): ConstraintelemContext; opt_column_list(): Opt_column_listContext; opt_column_list_create(): Opt_column_list_createContext; column_list(): Column_listContext; opt_c_include(): Opt_c_includeContext; key_match(): Key_matchContext; exclusionconstraintelem(): ExclusionconstraintelemContext; key_actions(): Key_actionsContext; key_update(): Key_updateContext; key_delete(): Key_deleteContext; key_action(): Key_actionContext; optinherit(): OptinheritContext; partitionspec(): PartitionspecContext; part_elem(): Part_elemContext; table_access_method_clause(): Table_access_method_clauseContext; optwith(): OptwithContext; oncommitoption(): OncommitoptionContext; opttablespace(): OpttablespaceContext; optconstablespace(): OptconstablespaceContext; existingindex(): ExistingindexContext; createstatsstmt(): CreatestatsstmtContext; alterstatsstmt(): AlterstatsstmtContext; createasstmt(): CreateasstmtContext; create_as_target(): Create_as_targetContext; opt_with_data(): Opt_with_dataContext; creatematviewstmt(): CreatematviewstmtContext; refreshma