{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\nPackage parser contains exposes a SQL parser for cockroach.\n\n## Constants\n\n```go\nconst ABORT = 57363\n```\n\n```go\nconst ABSOLUTE = 57364\n```\n\n```go\nconst ACCESS = 57365\n```\n\n```go\nconst ACTION = 57366\n```\n\n```go\nconst ADD = 57367\n```\n\n```go\nconst ADMIN = 57368\n```\n\n```go\nconst AFTER = 57369\n```\n\n```go\nconst AGGREGATE = 57370\n```\n\n```go\nconst ALL = 57371\n```\n\n```go\nconst ALTER = 57372\n```\n\n```go\nconst ALWAYS = 57373\n```\n\n```go\nconst ANALYSE = 57374\n```\n\n```go\nconst ANALYZE = 57375\n```\n\n```go\nconst AND = 57376\n```\n\n```go\nconst AND_AND = 57377\n```\n\n```go\nconst ANNOTATE_TYPE = 57379\n```\n\n```go\nconst ANY = 57378\n```\n\n```go\nconst ARRAY = 57380\n```\n\n```go\nconst AS = 57381\n```\n\n```go\nconst ASC = 57382\n```\n\n```go\nconst ASENSITIVE = 57385\n```\n\n```go\nconst ASYMMETRIC = 57386\n```\n\n```go\nconst AS_JSON = 57383\n```\n\n```go\nconst AS_LA = 58051\n```\n\n```go\nconst AT = 57387\n```\n\n```go\nconst ATOMIC = 57388\n```\n\n```go\nconst ATTRIBUTE = 57389\n```\n\n```go\nconst AT_AT = 57384\n```\n\n```go\nconst AUTHORIZATION = 57390\n```\n\n```go\nconst AUTOMATIC = 57391\n```\n\n```go\nconst AVAILABILITY = 57392\n```\n\n```go\nconst AVOID_FULL_SCAN = 57393\n```\n\n```go\nconst BACKUP = 57394\n```\n\n```go\nconst BACKUPS = 57395\n```\n\n```go\nconst BACKWARD = 57396\n```\n\n```go\nconst BATCH = 57397\n```\n\n```go\nconst BCONST = 57348\n```\n\n```go\nconst BEFORE = 57398\n```\n\n```go\nconst BEGIN = 57399\n```\n\n```go\nconst BETWEEN = 57400\n```\n\n```go\nconst BIDIRECTIONAL = 57401\n```\n\n```go\nconst BIGINT = 57402\n```\n\n```go\nconst BIGSERIAL = 57403\n```\n\n```go\nconst BINARY = 57404\n```\n\n```go\nconst BIT = 57405\n```\n\n```go\nconst BITCONST = 57349\n```\n\n```go\nconst BOOLEAN = 57407\n```\n\n```go\nconst BOTH = 57408\n```\n\n```go\nconst BOX2D = 57409\n```\n\n```go\nconst BUCKET_COUNT = 57406\n```\n\n```go\nconst BUNDLE = 57410\n```\n\n```go\nconst BY = 57411\n```\n\n```go\nconst BYPASSRLS = 57412\n```\n\n```go\nconst CACHE = 57413\n```\n\n```go\nconst CALL = 57414\n```\n\n```go\nconst CALLED = 57415\n```\n\n```go\nconst CANCEL = 57416\n```\n\n```go\nconst CANCELQUERY = 57417\n```\n\n```go\nconst CAPABILITIES = 57418\n```\n\n```go\nconst CAPABILITY = 57419\n```\n\n```go\nconst CASCADE = 57420\n```\n\n```go\nconst CASE = 57421\n```\n\n```go\nconst CAST = 57422\n```\n\n```go\nconst CBRT = 57423\n```\n\n```go\nconst CHANGEFEED = 57424\n```\n\n```go\nconst CHAR = 57425\n```\n\n```go\nconst CHARACTER = 57426\n```\n\n```go\nconst CHARACTERISTICS = 57427\n```\n\n```go\nconst CHECK = 57428\n```\n\n```go\nconst CHECK_FILES = 57429\n```\n\n```go\nconst CLOSE = 57430\n```\n\n```go\nconst CLUSTER = 57431\n```\n\n```go\nconst CLUSTERS = 57432\n```\n\n```go\nconst CLUSTER_ALL = 58059\n```\n\n```go\nconst COALESCE = 57433\n```\n\n```go\nconst COLLATE = 57434\n```\n\n```go\nconst COLLATION = 57435\n```\n\n```go\nconst COLUMN = 57436\n```\n\n```go\nconst COLUMNS = 57437\n```\n\n```go\nconst COMMENT = 57438\n```\n\n```go\nconst COMMENTS = 57439\n```\n\n```go\nconst COMMIT = 57440\n```\n\n```go\nconst COMMITTED = 57441\n```\n\n```go\nconst COMPACT = 57442\n```\n\n```go\nconst COMPLETE = 57443\n```\n\n```go\nconst COMPLETIONS = 57444\n```\n\n```go\nconst CONCAT = 57445\n```\n\n```go\nconst CONCURRENTLY = 57446\n```\n\n```go\nconst CONFIGURATION = 57447\n```\n\n```go\nconst CONFIGURATIONS = 57448\n```\n\n```go\nconst CONFIGURE = 57449\n```\n\n```go\nconst CONFLICT = 57450\n```\n\n```go\nconst CONNECTION = 57451\n```\n\n```go\nconst CONNECTIONS = 57452\n```\n\n```go\nconst CONSTRAINT = 57453\n```\n\n```go\nconst CONSTRAINTS = 57454\n```\n\n```go\nconst CONTAINED_BY = 58061\n```\n\n```go\nconst CONTAINS = 57455\n```\n\n```go\nconst CONTROLCHANGEFEED = 57456\n```\n\n```go\nconst CONTROLJOB = 57457\n```\n\n```go\nconst CONVERSION = 57458\n```\n\n```go\nconst CONVERT = 57459\n```\n\n```go\nconst COPY = 57460\n```\n\n```go\nconst COST = 57462\n```\n\n```go\nconst COS_DISTANCE = 57461\n```\n\n```go\nconst COVERING = 57463\n```\n\n```go\nconst CREATE = 57464\n```\n\n```go\nconst CREATEDB = 57465\n```\n\n```go\nconst CREATELOGIN = 57466\n```\n\n```go\nconst CREATEROLE = 57467\n```\n\n```go\nconst CROSS = 57468\n```\n\n```go\nconst CSV = 57469\n```\n\n```go\nconst CUBE = 57470\n```\n\n```go\nconst CURRENT = 57471\n```\n\n```go\nconst CURRENT_CATALOG = 57472\n```\n\n```go\nconst CURRENT_DATE = 57473\n```\n\n```go\nconst CURRENT_ROLE = 57475\n```\n\n```go\nconst CURRENT_SCHEMA = 57474\n```\n\n```go\nconst CURRENT_TIME = 57476\n```\n\n```go\nconst CURRENT_TIMESTAMP = 57477\n```\n\n```go\nconst CURRENT_USER = 57478\n```\n\n```go\nconst CURSOR = 57479\n```\n\n```go\nconst CYCLE = 57480\n```\n\n```go\nconst DATA = 57481\n```\n\n```go\nconst DATABASE = 57482\n```\n\n```go\nconst DATABASES = 57483\n```\n\n```go\nconst DATE = 57484\n```\n\n```go\nconst DAY = 57485\n```\n\n```go\nconst DEALLOCATE = 57492\n```\n\n```go\nconst DEBUG_IDS = 57486\n```\n\n```go\nconst DEC = 57487\n```\n\n```go\nconst DECIMAL = 57488\n```\n\n```go\nconst DECLARE = 57493\n```\n\n```go\nconst DEFAULT = 57489\n```\n\n```go\nconst DEFAULTS = 57490\n```\n\n```go\nconst DEFERRABLE = 57494\n```\n\n```go\nconst DEFERRED = 57495\n```\n\n```go\nconst DEFINER = 57491\n```\n\n```go\nconst DELETE = 57496\n```\n\n```go\nconst DELIMITER = 57497\n```\n\n```go\nconst DEPENDS = 57498\n```\n\n```go\nconst DESC = 57499\n```\n\n```go\nconst DESTINATION = 57500\n```\n\n```go\nconst DETACHED = 57501\n```\n\n```go\nconst DETAILS = 57502\n```\n\n```go\nconst DISABLE = 57503\n```\n\n```go\nconst DISCARD = 57504\n```\n\n```go\nconst DISTANCE = 57505\n```\n\n```go\nconst DISTINCT = 57506\n```\n\n```go\nconst DO = 57507\n```\n\n```go\nconst DOMAIN = 57508\n```\n\n```go\nconst DOT_DOT = 57355\n```\n\n```go\nconst DOUBLE = 57509\n```\n\n```go\nconst DROP = 57510\n```\n\n```go\nconst EACH = 57511\n```\n\n```go\nconst ELSE = 57512\n```\n\n```go\nconst ENABLE = 57513\n```\n\n```go\nconst ENCODING = 57514\n```\n\n```go\nconst ENCRYPTED = 57515\n```\n\n```go\nconst ENCRYPTION_INFO_DIR = 57516\n```\n\n```go\nconst ENCRYPTION_PASSPHRASE = 57517\n```\n\n```go\nconst END = 57518\n```\n\n```go\nconst ENUM = 57519\n```\n\n```go\nconst ENUMS = 57520\n```\n\n```go\nconst ERROR = 57362\n```\n\n```go\nconst ESCAPE = 57521\n```\n\n```go\nconst EXCEPT = 57522\n```\n\n```go\nconst EXCLUDE = 57523\n```\n\n```go\nconst EXCLUDING = 57524\n```\n\n```go\nconst EXECUTE = 57526\n```\n\n```go\nconst EXECUTION = 57527\n```\n\n```go\nconst EXISTS = 57525\n```\n\n```go\nconst EXPERIMENTAL = 57528\n```\n\n```go\nconst EXPERIMENTAL_AUDIT = 57531\n```\n\n```go\nconst EXPERIMENTAL_FINGERPRINTS = 57529\n```\n\n```go\nconst EXPERIMENTAL_RELOCATE = 57532\n```\n\n```go\nconst EXPERIMENTAL_REPLICA = 57530\n```\n\n```go\nconst EXPIRATION = 57533\n```\n\n```go\nconst EXPLAIN = 57534\n```\n\n```go\nconst EXPORT = 57535\n```\n\n```go\nconst EXTENSION = 57536\n```\n\n```go\nconst EXTERNAL = 57537\n```\n\n```go\nconst EXTRACT = 57538\n```\n\n```go\nconst EXTRACT_DURATION = 57539\n```\n\n```go\nconst EXTREMES = 57540\n```\n\n```go\nconst FAILURE = 57541\n```\n\n```go\nconst FALSE = 57542\n```\n\n```go\nconst FAMILY = 57543\n```\n\n```go\nconst FCONST = 57351\n```\n\n```go\nconst FETCH = 57544\n```\n\n```go\nconst FETCHTEXT = 57546\n```\n\n```go\nconst FETCHTEXT_PATH = 57548\n```\n\n```go\nconst FETCHVAL = 57545\n```\n\n```go\nconst FETCHVAL_PATH = 57547\n```\n\n```go\nconst FILES = 57549\n```\n\n```go\nconst FILTER = 57550\n```\n\n```go\nconst FIRST = 57551\n```\n\n```go\nconst FLOAT = 57552\n```\n\n```go\nconst FLOAT4 = 57553\n```\n\n```go\nconst FLOAT8 = 57554\n```\n\n```go\nconst FLOORDIV = 57555\n```\n\n```go\nconst FOLLOWING = 57556\n```\n\n```go\nconst FOR = 57557\n```\n\n```go\nconst FORCE = 57558\n```\n\n```go\nconst FORCE_INDEX = 57559\n```\n\n```go\nconst FORCE_INVERTED_INDEX = 57560\n```\n\n```go\nconst FORCE_NOT_NULL = 57561\n```\n\n```go\nconst FORCE_NULL = 57562\n```\n\n```go\nconst FORCE_QUOTE = 57563\n```\n\n```go\nconst FORCE_ZIGZAG = 57564\n```\n\n```go\nconst FOREIGN = 57565\n```\n\n```go\nconst FORMAT = 57566\n```\n\n```go\nconst FORWARD = 57567\n```\n\n```go\nconst FREEZE = 57568\n```\n\n```go\nconst FROM = 57569\n```\n\n```go\nconst FULL = 57570\n```\n\n```go\nconst FUNCTION = 57571\n```\n\n```go\nconst FUNCTIONS = 57572\n```\n\n```go\nconst GENERATED = 57573\n```\n\n```go\nconst GENERATED_ALWAYS = 58052\n```\n\n```go\nconst GENERATED_BY_DEFAULT = 58053\n```\n\n```go\nconst GEOGRAPHY = 57574\n```\n\n```go\nconst GEOMETRY = 57575\n```\n\n```go\nconst GEOMETRYCOLLECTION = 57579\n```\n\n```go\nconst GEOMETRYCOLLECTIONM = 57580\n```\n\n```go\nconst GEOMETRYCOLLECTIONZ = 57581\n```\n\n```go\nconst GEOMETRYCOLLECTIONZM = 57582\n```\n\n```go\nconst GEOMETRYM = 57576\n```\n\n```go\nconst GEOMETRYZ = 57577\n```\n\n```go\nconst GEOMETRYZM = 57578\n```\n\n```go\nconst GLOBAL = 57583\n```\n\n```go\nconst GOAL = 57584\n```\n\n```go\nconst GRANT = 57585\n```\n\n```go\nconst GRANTEE = 57586\n```\n\n```go\nconst GRANTS = 57587\n```\n\n```go\nconst GREATER_EQUALS = 57357\n```\n\n```go\nconst GREATEST = 57588\n```\n\n```go\nconst GROUP = 57589\n```\n\n```go\nconst GROUPING = 57590\n```\n\n```go\nconst GROUPS = 57591\n```\n\n```go\nconst HASH = 57593\n```\n\n```go\nconst HAVING = 57592\n```\n\n```go\nconst HEADER = 57594\n```\n\n```go\nconst HELPTOKEN = 58065\n```\n\n```go\nconst HIGH = 57595\n```\n\n```go\nconst HISTOGRAM = 57596\n```\n\n```go\nconst HOLD = 57597\n```\n\n```go\nconst HOUR = 57598\n```\n\n```go\nconst ICONST = 57350\n```\n\n```go\nconst IDENT = 57346\n```\n\n```go\nconst IDENTITY = 57599\n```\n\n```go\nconst IF = 57600\n```\n\n```go\nconst IFERROR = 57601\n```\n\n```go\nconst IFNULL = 57602\n```\n\n```go\nconst IGNORE_FOREIGN_KEYS = 57603\n```\n\n```go\nconst ILIKE = 57604\n```\n\n```go\nconst IMMEDIATE = 57605\n```\n\n```go\nconst IMMEDIATELY = 57606\n```\n\n```go\nconst IMMUTABLE = 57607\n```\n\n```go\nconst IMPORT = 57608\n```\n\n```go\nconst IN = 57609\n```\n\n```go\nconst INCLUDE = 57610\n```\n\n```go\nconst INCLUDE_ALL_SECONDARY_TENANTS = 57612\n```\n\n```go\nconst INCLUDE_ALL_VIRTUAL_CLUSTERS = 57613\n```\n\n```go\nconst INCLUDING = 57611\n```\n\n```go\nconst INCREMENT = 57614\n```\n\n```go\nconst INCREMENTAL = 57615\n```\n\n```go\nconst INCREMENTAL_LOCATION = 57616\n```\n\n```go\nconst INDEX = 57620\n```\n\n```go\nconst INDEXES = 57621\n```\n\n```go\nconst INDEX_AFTER_ORDER_BY_BEFORE_AT = 57627\n```\n\n```go\nconst INDEX_BEFORE_NAME_THEN_PAREN = 57626\n```\n\n```go\nconst INDEX_BEFORE_PAREN = 57625\n```\n\n```go\nconst INET = 57617\n```\n\n```go\nconst INET_CONTAINED_BY_OR_EQUALS = 57618\n```\n\n```go\nconst INET_CONTAINS_OR_EQUALS = 57619\n```\n\n```go\nconst INHERITS = 57622\n```\n\n```go\nconst INITIALLY = 57624\n```\n\n```go\nconst INJECT = 57623\n```\n\n```go\nconst INNER = 57628\n```\n\n```go\nconst INOUT = 57629\n```\n\n```go\nconst INPUT = 57630\n```\n\n```go\nconst INSENSITIVE = 57631\n```\n\n```go\nconst INSERT = 57632\n```\n\n```go\nconst INSTEAD = 57633\n```\n\n```go\nconst INT = 57634\n```\n\n```go\nconst INTEGER = 57635\n```\n\n```go\nconst INTERSECT = 57636\n```\n\n```go\nconst INTERVAL = 57637\n```\n\n```go\nconst INTERVAL_SIMPLE = 58063\n```\n\n```go\nconst INTO = 57638\n```\n\n```go\nconst INTO_DB = 57639\n```\n\n```go\nconst INVERTED = 57640\n```\n\n```go\nconst INVISIBLE = 58032\n```\n\n```go\nconst INVOKER = 57641\n```\n\n```go\nconst IS = 57642\n```\n\n```go\nconst ISERROR = 57643\n```\n\n```go\nconst ISNULL = 57644\n```\n\n```go\nconst ISOLATION = 57645\n```\n\n```go\nconst JOB = 57646\n```\n\n```go\nconst JOBS = 57647\n```\n\n```go\nconst JOIN = 57648\n```\n\n```go\nconst JSON = 57649\n```\n\n```go\nconst JSONB = 57650\n```\n\n```go\nconst JSON_ALL_EXISTS = 57652\n```\n\n```go\nconst JSON_SOME_EXISTS = 57651\n```\n\n```go\nconst KEY = 57653\n```\n\n```go\nconst KEYS = 57654\n```\n\n```go\nconst KMS = 57655\n```\n\n```go\nconst KV = 57656\n```\n\n```go\nconst LABEL = 57657\n```\n\n```go\nconst LANGUAGE = 57658\n```\n\n```go\nconst LAST = 57659\n```\n\n```go\nconst LATERAL = 57660\n```\n\n```go\nconst LATEST = 57661\n```\n\n```go\nconst LC_COLLATE = 57663\n```\n\n```go\nconst LC_CTYPE = 57662\n```\n\n```go\nconst LEADING = 57664\n```\n\n```go\nconst LEAKPROOF = 57667\n```\n\n```go\nconst LEASE = 57665\n```\n\n```go\nconst LEAST = 57666\n```\n\n```go\nconst LEFT = 57668\n```\n\n```go\nconst LESS = 57669\n```\n\n```go\nconst LESS_EQUALS = 57356\n```\n\n```go\nconst LEVEL = 57670\n```\n\n```go\nconst LIKE = 57671\n```\n\n```go\nconst LIMIT = 57672\n```\n\n```go\nconst LINESTRING = 57673\n```\n\n```go\nconst LINESTRINGM = 57674\n```\n\n```go\nconst LINESTRINGZ = 57675\n```\n\n```go\nconst LINESTRINGZM = 57676\n```\n\n```go\nconst LIST = 57677\n```\n\n```go\nconst LOCAL = 57678\n```\n\n```go\nconst LOCALITY = 57679\n```\n\n```go\nconst LOCALTIME = 57680\n```\n\n```go\nconst LOCALTIMESTAMP = 57681\n```\n\n```go\nconst LOCKED = 57682\n```\n\n```go\nconst LOGICAL = 57683\n```\n\n```go\nconst LOGICALLY = 57684\n```\n\n```go\nconst LOGIN = 57685\n```\n\n```go\nconst LOOKUP = 57686\n```\n\n```go\nconst LOW = 57687\n```\n\n```go\nconst LSHIFT = 57688\n```\n\n```go\nconst MATCH = 57689\n```\n\n```go\nconst MATERIALIZED = 57690\n```\n\n```go\nconst MAXVALUE = 57693\n```\n\n```go\nconst MERGE = 57691\n```\n\n```go\nconst METHOD = 57694\n```\n\n```go\nconst MINUTE = 57695\n```\n\n```go\nconst MINVALUE = 57692\n```\n\n```go\nconst MODE = 57698\n```\n\n```go\nconst MODIFYCLUSTERSETTING = 57696\n```\n\n```go\nconst MODIFYSQLCLUSTERSETTING = 57697\n```\n\n```go\nconst MONTH = 57699\n```\n\n```go\nconst MOVE = 57700\n```\n\n```go\nconst MULTILINESTRING = 57701\n```\n\n```go\nconst MULTILINESTRINGM = 57702\n```\n\n```go\nconst MULTILINESTRINGZ = 57703\n```\n\n```go\nconst MULTILINESTRINGZM = 57704\n```\n\n```go\nconst MULTIPOINT = 57705\n```\n\n```go\nconst MULTIPOINTM = 57706\n```\n\n```go\nconst MULTIPOINTZ = 57707\n```\n\n```go\nconst MULTIPOINTZM = 57708\n```\n\n```go\nconst MULTIPOLYGON = 57709\n```\n\n```go\nconst MULTIPOLYGONM = 57710\n```\n\n```go\nconst MULTIPOLYGONZ = 57711\n```\n\n```go\nconst MULTIPOLYGONZM = 57712\n```\n\n```go\nconst MaxInt = int(MaxUint \u003e\u003e 1)\n```\n\n```go\nconst MaxUint = ^uint(0)\n```\n\n```go\nconst NAME = 57714\n```\n\n```go\nconst NAMES = 57715\n```\n\n```go\nconst NAN = 57713\n```\n\n```go\nconst NATURAL = 57716\n```\n\n```go\nconst NEG_INNER_PRODUCT = 57717\n```\n\n```go\nconst NEVER = 57718\n```\n\n```go\nconst NEW = 57719\n```\n\n```go\nconst NEW_DB_NAME = 57720\n```\n\n```go\nconst NEW_KMS = 57721\n```\n\n```go\nconst NEXT = 57722\n```\n\n```go\nconst NO = 57723\n```\n\n```go\nconst NOBYPASSRLS = 57724\n```\n\n```go\nconst NOCANCELQUERY = 57725\n```\n\n```go\nconst NOCONTROLCHANGEFEED = 57726\n```\n\n```go\nconst NOCONTROLJOB = 57727\n```\n\n```go\nconst NOCREATEDB = 57728\n```\n\n```go\nconst NOCREATELOGIN = 57729\n```\n\n```go\nconst NOCREATEROLE = 57730\n```\n\n```go\nconst NODE = 57731\n```\n\n```go\nconst NOLOGIN = 57732\n```\n\n```go\nconst NOMODIFYCLUSTERSETTING = 57733\n```\n\n```go\nconst NONE = 57739\n```\n\n```go\nconst NONVOTERS = 57740\n```\n\n```go\nconst NOREPLICATION = 57734\n```\n\n```go\nconst NORMAL = 57741\n```\n\n```go\nconst NOSQLLOGIN = 57735\n```\n\n```go\nconst NOT = 57742\n```\n\n```go\nconst NOTHING = 57743\n```\n\n```go\nconst NOTHING_AFTER_RETURNING = 57744\n```\n\n```go\nconst NOTNULL = 57745\n```\n\n```go\nconst NOT_EQUALS = 57358\n```\n\n```go\nconst NOT_LA = 58048\n```\n\n```go\nconst NOT_REGIMATCH = 57361\n```\n\n```go\nconst NOT_REGMATCH = 57359\n```\n\n```go\nconst NOVIEWACTIVITY = 57746\n```\n\n```go\nconst NOVIEWACTIVITYREDACTED = 57747\n```\n\n```go\nconst NOVIEWCLUSTERSETTING = 57748\n```\n\n```go\nconst NOWAIT = 57749\n```\n\n```go\nconst NO_FULL_SCAN = 57738\n```\n\n```go\nconst NO_INDEX_JOIN = 57736\n```\n\n```go\nconst NO_ZIGZAG_JOIN = 57737\n```\n\n```go\nconst NULL = 57750\n```\n\n```go\nconst NULLIF = 57751\n```\n\n```go\nconst NULLS = 57752\n```\n\n```go\nconst NULLS_LA = 58049\n```\n\n```go\nconst NUMERIC = 57753\n```\n\n```go\nconst OF = 57754\n```\n\n```go\nconst OFF = 57755\n```\n\n```go\nconst OFFSET = 57756\n```\n\n```go\nconst OID = 57757\n```\n\n```go\nconst OIDS = 57758\n```\n\n```go\nconst OIDVECTOR = 57759\n```\n\n```go\nconst OLD = 57760\n```\n\n```go\nconst OLD_KMS = 57761\n```\n\n```go\nconst ON = 57762\n```\n\n```go\nconst ONLY = 57763\n```\n\n```go\nconst ON_LA = 58057\n```\n\n```go\nconst OPERATOR = 57778\n```\n\n```go\nconst OPT = 57764\n```\n\n```go\nconst OPTION = 57765\n```\n\n```go\nconst OPTIONS = 57766\n```\n\n```go\nconst OR = 57767\n```\n\n```go\nconst ORDER = 57768\n```\n\n```go\nconst ORDINALITY = 57769\n```\n\n```go\nconst OTHERS = 57770\n```\n\n```go\nconst OUT = 57771\n```\n\n```go\nconst OUTER = 57772\n```\n\n```go\nconst OVER = 57773\n```\n\n```go\nconst OVERLAPS = 57774\n```\n\n```go\nconst OVERLAY = 57775\n```\n\n```go\nconst OWNED = 57776\n```\n\n```go\nconst OWNER = 57777\n```\n\n```go\nconst PARALLEL = 57779\n```\n\n```go\nconst PARENT = 57780\n```\n\n```go\nconst PARTIAL = 57781\n```\n\n```go\nconst PARTITION = 57782\n```\n\n```go\nconst PARTITIONS = 57783\n```\n\n```go\nconst PASSWORD = 57784\n```\n\n```go\nconst PAUSE = 57785\n```\n\n```go\nconst PAUSED = 57786\n```\n\n```go\nconst PER = 57787\n```\n\n```go\nconst PERMISSIVE = 57788\n```\n\n```go\nconst PHYSICAL = 57789\n```\n\n```go\nconst PLACEHOLDER = 57352\n```\n\n```go\nconst PLACEMENT = 57790\n```\n\n```go\nconst PLACING = 57791\n```\n\n```go\nconst PLAN = 57792\n```\n\n```go\nconst PLANS = 57793\n```\n\n```go\nconst POINT = 57794\n```\n\n```go\nconst POINTM = 57795\n```\n\n```go\nconst POINTZ = 57796\n```\n\n```go\nconst POINTZM = 57797\n```\n\n```go\nconst POLICIES = 57798\n```\n\n```go\nconst POLICY = 57799\n```\n\n```go\nconst POLYGON = 57800\n```\n\n```go\nconst POLYGONM = 57801\n```\n\n```go\nconst POLYGONZ = 57802\n```\n\n```go\nconst POLYGONZM = 57803\n```\n\n```go\nconst POSITION = 57804\n```\n\n```go\nconst POSTFIXOP = 58062\n```\n\n```go\nconst PRECEDING = 57805\n```\n\n```go\nconst PRECISION = 57806\n```\n\n```go\nconst PREPARE = 57807\n```\n\n```go\nconst PREPARED = 57808\n```\n\n```go\nconst PRESERVE = 57809\n```\n\n```go\nconst PRIMARY = 57810\n```\n\n```go\nconst PRIOR = 57811\n```\n\n```go\nconst PRIORITY = 57812\n```\n\n```go\nconst PRIVILEGES = 57813\n```\n\n```go\nconst PROCEDURAL = 57814\n```\n\n```go\nconst PROCEDURE = 57815\n```\n\n```go\nconst PROCEDURES = 57816\n```\n\n```go\nconst PUBLIC = 57817\n```\n\n```go\nconst PUBLICATION = 57818\n```\n\n```go\nconst QUERIES = 57819\n```\n\n```go\nconst QUERY = 57820\n```\n\n```go\nconst QUOTE = 57821\n```\n\n```go\nconst RANGE = 57822\n```\n\n```go\nconst RANGES = 57823\n```\n\n```go\nconst READ = 57824\n```\n\n```go\nconst REAL = 57825\n```\n\n```go\nconst REASON = 57826\n```\n\n```go\nconst REASSIGN = 57827\n```\n\n```go\nconst RECURRING = 57829\n```\n\n```go\nconst RECURSIVE = 57828\n```\n\n```go\nconst REDACT = 57830\n```\n\n```go\nconst REF = 57831\n```\n\n```go\nconst REFERENCES = 57832\n```\n\n```go\nconst REFERENCING = 57833\n```\n\n```go\nconst REFRESH = 57834\n```\n\n```go\nconst REGCLASS = 57835\n```\n\n```go\nconst REGIMATCH = 57360\n```\n\n```go\nconst REGION = 57836\n```\n\n```go\nconst REGIONAL = 57837\n```\n\n```go\nconst REGIONS = 57838\n```\n\n```go\nconst REGNAMESPACE = 57839\n```\n\n```go\nconst REGPROC = 57840\n```\n\n```go\nconst REGPROCEDURE = 57841\n```\n\n```go\nconst REGROLE = 57842\n```\n\n```go\nconst REGTYPE = 57843\n```\n\n```go\nconst REINDEX = 57844\n```\n\n```go\nconst RELATIVE = 57845\n```\n\n```go\nconst RELEASE = 57854\n```\n\n```go\nconst RELOCATE = 57846\n```\n\n```go\nconst REMOVE_PATH = 57847\n```\n\n```go\nconst REMOVE_REGIONS = 57848\n```\n\n```go\nconst RENAME = 57849\n```\n\n```go\nconst REPEATABLE = 57850\n```\n\n```go\nconst REPLACE = 57851\n```\n\n```go\nconst REPLICATED = 57852\n```\n\n```go\nconst REPLICATION = 57853\n```\n\n```go\nconst RESET = 57855\n```\n\n```go\nconst RESET_ALL = 58054\n```\n\n```go\nconst RESTART = 57856\n```\n\n```go\nconst RESTORE = 57857\n```\n\n```go\nconst RESTRICT = 57858\n```\n\n```go\nconst RESTRICTED = 57859\n```\n\n```go\nconst RESTRICTIVE = 57860\n```\n\n```go\nconst RESUME = 57861\n```\n\n```go\nconst RETENTION = 57862\n```\n\n```go\nconst RETRY = 57866\n```\n\n```go\nconst RETURN = 57864\n```\n\n```go\nconst RETURNING = 57863\n```\n\n```go\nconst RETURNS = 57865\n```\n\n```go\nconst REVISION_HISTORY = 57867\n```\n\n```go\nconst REVOKE = 57868\n```\n\n```go\nconst RIGHT = 57869\n```\n\n```go\nconst ROLE = 57870\n```\n\n```go\nconst ROLES = 57871\n```\n\n```go\nconst ROLE_ALL = 58055\n```\n\n```go\nconst ROLLBACK = 57872\n```\n\n```go\nconst ROLLUP = 57873\n```\n\n```go\nconst ROUTINES = 57874\n```\n\n```go\nconst ROW = 57875\n```\n\n```go\nconst ROWS = 57876\n```\n\n```go\nconst RSHIFT = 57877\n```\n\n```go\nconst RULE = 57878\n```\n\n```go\nconst RUNNING = 57879\n```\n\n```go\nconst SAVEPOINT = 57880\n```\n\n```go\nconst SCANS = 57881\n```\n\n```go\nconst SCATTER = 57882\n```\n\n```go\nconst SCHEDULE = 57883\n```\n\n```go\nconst SCHEDULES = 57884\n```\n\n```go\nconst SCHEMA = 57886\n```\n\n```go\nconst SCHEMAS = 57888\n```\n\n```go\nconst SCHEMA_ONLY = 57887\n```\n\n```go\nconst SCONST = 57347\n```\n\n```go\nconst SCROLL = 57885\n```\n\n```go\nconst SCRUB = 57889\n```\n\n```go\nconst SEARCH = 57890\n```\n\n```go\nconst SECOND = 57891\n```\n\n```go\nconst SECONDARY = 57892\n```\n\n```go\nconst SECURITY = 57893\n```\n\n```go\nconst SELECT = 57894\n```\n\n```go\nconst SEQUENCE = 57895\n```\n\n```go\nconst SEQUENCES = 57896\n```\n\n```go\nconst SERIALIZABLE = 57897\n```\n\n```go\nconst SERVER = 57898\n```\n\n```go\nconst SERVICE = 57899\n```\n\n```go\nconst SESSION = 57900\n```\n\n```go\nconst SESSIONS = 57901\n```\n\n```go\nconst SESSION_USER = 57902\n```\n\n```go\nconst SET = 57903\n```\n\n```go\nconst SETOF = 57904\n```\n\n```go\nconst SETS = 57905\n```\n\n```go\nconst SETTING = 57906\n```\n\n```go\nconst SETTINGS = 57907\n```\n\n```go\nconst SET_TRACING = 58060\n```\n\n```go\nconst SHARE = 57908\n```\n\n```go\nconst SHARED = 57909\n```\n\n```go\nconst SHOW = 57910\n```\n\n```go\nconst SIMILAR = 57911\n```\n\n```go\nconst SIMPLE = 57912\n```\n\n```go\nconst SIZE = 57913\n```\n\n```go\nconst SKIP = 57914\n```\n\n```go\nconst SKIP_LOCALITIES_CHECK = 57915\n```\n\n```go\nconst SKIP_MISSING_FOREIGN_KEYS = 57916\n```\n\n```go\nconst SKIP_MISSING_SEQUENCES = 57917\n```\n\n```go\nconst SKIP_MISSING_SEQUENCE_OWNERS = 57918\n```\n\n```go\nconst SKIP_MISSING_UDFS = 57920\n```\n\n```go\nconst SKIP_MISSING_VIEWS = 57919\n```\n\n```go\nconst SMALLINT = 57921\n```\n\n```go\nconst SMALLSERIAL = 57922\n```\n\n```go\nconst SNAPSHOT = 57923\n```\n\n```go\nconst SOME = 57924\n```\n\n```go\nconst SOURCE = 57925\n```\n\n```go\nconst SPLIT = 57926\n```\n\n```go\nconst SQL = 57927\n```\n\n```go\nconst SQLLOGIN = 57928\n```\n\n```go\nconst SQRT = 57955\n```\n\n```go\nconst STABLE = 57929\n```\n\n```go\nconst START = 57930\n```\n\n```go\nconst STATE = 57931\n```\n\n```go\nconst STATEMENT = 57932\n```\n\n```go\nconst STATEMENTS = 57957\n```\n\n```go\nconst STATISTICS = 57933\n```\n\n```go\nconst STATUS = 57934\n```\n\n```go\nconst STDIN = 57935\n```\n\n```go\nconst STDOUT = 57936\n```\n\n```go\nconst STOP = 57937\n```\n\n```go\nconst STORAGE = 57942\n```\n\n```go\nconst STORE = 57943\n```\n\n```go\nconst STORED = 57944\n```\n\n```go\nconst STORING = 57945\n```\n\n```go\nconst STRAIGHT = 57938\n```\n\n```go\nconst STREAM = 57939\n```\n\n```go\nconst STRICT = 57940\n```\n\n```go\nconst STRING = 57941\n```\n\n```go\nconst SUBJECT = 57946\n```\n\n```go\nconst SUBSCRIPTION = 57956\n```\n\n```go\nconst SUBSTRING = 57947\n```\n\n```go\nconst SUPER = 57948\n```\n\n```go\nconst SUPPORT = 57949\n```\n\n```go\nconst SURVIVAL = 57951\n```\n\n```go\nconst SURVIVE = 57950\n```\n\n```go\nconst SYMMETRIC = 57952\n```\n\n```go\nconst SYNTAX = 57953\n```\n\n```go\nconst SYSTEM = 57954\n```\n\n```go\nconst TABLE = 57958\n```\n\n```go\nconst TABLES = 57959\n```\n\n```go\nconst TABLESPACE = 57960\n```\n\n```go\nconst TEMP = 57961\n```\n\n```go\nconst TEMPLATE = 57962\n```\n\n```go\nconst TEMPORARY = 57963\n```\n\n```go\nconst TENANT = 57964\n```\n\n```go\nconst TENANTS = 57966\n```\n\n```go\nconst TENANT_ALL = 58058\n```\n\n```go\nconst TENANT_NAME = 57965\n```\n\n```go\nconst TESTING_RELOCATE = 57967\n```\n\n```go\nconst TEXT = 57968\n```\n\n```go\nconst THEN = 57969\n```\n\n```go\nconst THROTTLING = 57976\n```\n\n```go\nconst TIES = 57970\n```\n\n```go\nconst TIME = 57971\n```\n\n```go\nconst TIMESTAMP = 57973\n```\n\n```go\nconst TIMESTAMPTZ = 57974\n```\n\n```go\nconst TIMETZ = 57972\n```\n\n```go\nconst TO = 57975\n```\n\n```go\nconst TRACE = 57978\n```\n\n```go\nconst TRACING = 57992\n```\n\n```go\nconst TRAILING = 57977\n```\n\n```go\nconst TRANSACTION = 57979\n```\n\n```go\nconst TRANSACTIONS = 57980\n```\n\n```go\nconst TRANSFER = 57981\n```\n\n```go\nconst TRANSFORM = 57982\n```\n\n```go\nconst TREAT = 57983\n```\n\n```go\nconst TRIGGER = 57984\n```\n\n```go\nconst TRIGGERS = 57985\n```\n\n```go\nconst TRIM = 57986\n```\n\n```go\nconst TRUE = 57987\n```\n\n```go\nconst TRUNCATE = 57988\n```\n\n```go\nconst TRUSTED = 57989\n```\n\n```go\nconst TYPE = 57990\n```\n\n```go\nconst TYPEANNOTATE = 57354\n```\n\n```go\nconst TYPECAST = 57353\n```\n\n```go\nconst TYPES = 57991\n```\n\n```go\nconst UMINUS = 58064\n```\n\n```go\nconst UNBOUNDED = 57993\n```\n\n```go\nconst UNCOMMITTED = 57994\n```\n\n```go\nconst UNIDIRECTIONAL = 57995\n```\n\n```go\nconst UNION = 57996\n```\n\n```go\nconst UNIQUE = 57997\n```\n\n```go\nconst UNKNOWN = 57998\n```\n\n```go\nconst UNLISTEN = 57999\n```\n\n```go\nconst UNLOGGED = 58000\n```\n\n```go\nconst UNSAFE_RESTORE_INCOMPATIBLE_VERSION = 58001\n```\n\n```go\nconst UNSET = 58006\n```\n\n```go\nconst UNSPLIT = 58002\n```\n\n```go\nconst UNTIL = 58007\n```\n\n```go\nconst UPDATE = 58003\n```\n\n```go\nconst UPDATES_CLUSTER_MONITORING_METRICS = 58004\n```\n\n```go\nconst UPSERT = 58005\n```\n\n```go\nconst USE = 58008\n```\n\n```go\nconst USER = 58009\n```\n\n```go\nconst USERS = 58010\n```\n\n```go\nconst USER_ALL = 58056\n```\n\n```go\nconst USING = 58011\n```\n\n```go\nconst UUID = 58012\n```\n\n```go\nconst VALID = 58013\n```\n\n```go\nconst VALIDATE = 58014\n```\n\n```go\nconst VALUE = 58015\n```\n\n```go\nconst VALUES = 58016\n```\n\n```go\nconst VARBIT = 58017\n```\n\n```go\nconst VARCHAR = 58018\n```\n\n```go\nconst VARIABLES = 58023\n```\n\n```go\nconst VARIADIC = 58019\n```\n\n```go\nconst VARYING = 58024\n```\n\n```go\nconst VECTOR = 58020\n```\n\n```go\nconst VERIFY_BACKUP_TABLE_DATA = 58021\n```\n\n```go\nconst VIEW = 58022\n```\n\n```go\nconst VIEWACTIVITY = 58025\n```\n\n```go\nconst VIEWACTIVITYREDACTED = 58026\n```\n\n```go\nconst VIEWCLUSTERMETADATA = 58028\n```\n\n```go\nconst VIEWCLUSTERSETTING = 58029\n```\n\n```go\nconst VIEWDEBUG = 58027\n```\n\n```go\nconst VIRTUAL = 58030\n```\n\n```go\nconst VIRTUAL_CLUSTER = 58037\n```\n\n```go\nconst VIRTUAL_CLUSTER_NAME = 58036\n```\n\n```go\nconst VISIBILITY = 58033\n```\n\n```go\nconst VISIBLE = 58031\n```\n\n```go\nconst VOLATILE = 58034\n```\n\n```go\nconst VOTERS = 58035\n```\n\n```go\nconst WHEN = 58038\n```\n\n```go\nconst WHERE = 58039\n```\n\n```go\nconst WINDOW = 58040\n```\n\n```go\nconst WITH = 58041\n```\n\n```go\nconst WITHIN = 58042\n```\n\n```go\nconst WITHOUT = 58043\n```\n\n```go\nconst WITH_LA = 58050\n```\n\n```go\nconst WORK = 58044\n```\n\n```go\nconst WRITE = 58045\n```\n\n```go\nconst YEAR = 58046\n```\n\n```go\nconst ZONE = 58047\n```\n\n## Variables\n\n```go\nvar AllHelp = func(h map[string]HelpMessageBody) string {\n\n\tcmds := make(map[string][]string)\n\tfor c, details := range h {\n\t\tif details.Category == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\tcmds[details.Category] = append(cmds[details.Category], c)\n\t}\n\n\t// Ensure the result is deterministic.\n\tvar categories []string\n\tfor c, l := range cmds {\n\t\tcategories = append(categories, c)\n\t\tsort.Strings(l)\n\t}\n\tsort.Strings(categories)\n\n\t// Compile the final help index.\n\tvar buf bytes.Buffer\n\tw := tabwriter.NewWriter(\u0026buf, 0, 0, 1, ' ', 0)\n\tfor _, cat := range categories {\n\t\tfmt.Fprintf(w, \"%s:\\n\", cases.Title(language.English, cases.NoLower).String(cat))\n\t\tfor _, item := range cmds[cat] {\n\t\t\tfmt.Fprintf(w, \"\\t\\t%s\\t%s\\n\", item, h[item].ShortDescription)\n\t\t}\n\t\tfmt.Fprintln(w)\n\t}\n\t_ = w.Flush()\n\treturn buf.String()\n}(helpMessages)\n```\nAllHelp contains an overview of all statements with help messages. For example, displayed in the CLI shell with \\\\h without additional parameters.\n\n```go\nvar HelpMessages = func(h map[string]HelpMessageBody) map[string]HelpMessageBody {\n\tappendSeeAlso := func(newItem, prevItems string) string {\n\n\t\tif prevItems != \"\" {\n\t\t\treturn newItem + \"\\n  \" + prevItems\n\t\t}\n\t\treturn newItem\n\t}\n\treformatSeeAlso := func(seeAlso string) string {\n\t\treturn strings.Replace(\n\t\t\tstrings.Replace(seeAlso, \", \", \"\\n  \", -1),\n\t\t\t\"WEBDOCS\", docs.URLBase, -1)\n\t}\n\tsrcMsg := h[\"\u003cSOURCE\u003e\"]\n\tsrcMsg.SeeAlso = reformatSeeAlso(strings.TrimSpace(srcMsg.SeeAlso))\n\tselectMsg := h[\"\u003cSELECTCLAUSE\u003e\"]\n\tselectMsg.SeeAlso = reformatSeeAlso(strings.TrimSpace(selectMsg.SeeAlso))\n\tfor k, m := range h {\n\t\tm = h[k]\n\t\tm.ShortDescription = strings.TrimSpace(m.ShortDescription)\n\t\tm.Text = strings.TrimSpace(m.Text)\n\t\tm.SeeAlso = strings.TrimSpace(m.SeeAlso)\n\n\t\tif strings.Contains(m.Text, \"\u003csource\u003e\") \u0026\u0026 k != \"\u003cSOURCE\u003e\" {\n\t\t\tm.Text = strings.TrimSpace(m.Text) + \"\\n\\n\" + strings.TrimSpace(srcMsg.Text)\n\t\t\tm.SeeAlso = appendSeeAlso(srcMsg.SeeAlso, m.SeeAlso)\n\t\t}\n\n\t\tif strings.Contains(m.Text, \"\u003cselectclause\u003e\") \u0026\u0026 k != \"\u003cSELECTCLAUSE\u003e\" {\n\t\t\tm.Text = strings.TrimSpace(m.Text) + \"\\n\\n\" + strings.TrimSpace(selectMsg.Text)\n\t\t\tm.SeeAlso = appendSeeAlso(selectMsg.SeeAlso, m.SeeAlso)\n\t\t}\n\n\t\tif strings.Contains(m.Text, \"\u003ctablename\u003e\") {\n\t\t\tm.SeeAlso = appendSeeAlso(\"SHOW TABLES\", m.SeeAlso)\n\t\t}\n\t\tm.SeeAlso = reformatSeeAlso(m.SeeAlso)\n\t\th[k] = m\n\t}\n\treturn h\n}(helpMessages)\n```\nHelpMessages is the registry of all help messages, keyed by the top-level statement that they document. The key is intended for use via the \\\\h client-side command.\n\n```go\nvar ParseDoBlockFn func(tree.DoBlockOptions) (tree.DoBlockBody, error)\n```\nParseDoBlockFn allows the SQL parser to parse a PL/pgSQL DO block body.\n\n## Functions\n\n```go\nfunc GetTypeFromCastOrCollate(expr tree.Expr) (tree.ResolvableTypeReference, error)\n```\nGetTypeFromCastOrCollate returns the type of the given tree.Expr. The method assumes that the expression is either tree.CastExpr or tree.CollateExpr (which wraps the tree.CastExpr).\n\n```go\nfunc GetTypeFromValidSQLSyntax(sql string) (tree.ResolvableTypeReference, error)\n```\nGetTypeFromValidSQLSyntax retrieves a type from its SQL syntax. The caller is responsible for guaranteeing that the type expression is valid SQL (or handling the resulting error). This includes verifying that complex identifiers are enclosed in double quotes, etc.\n\n```go\nfunc GetTypeReferenceFromName(typeName tree.Name) (tree.ResolvableTypeReference, error)\n```\nGetTypeReferenceFromName turns a type name into a type reference. This supports only “simple” (single-identifier) references to built-in types, when the identifer has already been parsed away from the input SQL syntax.\n\n```go\nfunc NakedIntTypeFromDefaultIntSize(defaultIntSize int32) *types.T\n```\nNakedIntTypeFromDefaultIntSize given the size in bits or bytes (preferred) of how a \"naked\" INT type should be parsed returns the corresponding integer type.\n\n```go\nfunc Parse(sql string) (statements.Statements, error)\n```\nParse parses a sql statement string and returns a list of Statements.\n\n```go\nfunc ParseExpr(sql string) (tree.Expr, error)\n```\nParseExpr parses a SQL scalar expression. The caller is responsible for ensuring that the input is, in fact, a valid SQL scalar expression — the results are undefined if the string contains invalid SQL syntax.\n\n```go\nfunc ParseExprWithInt(sql string, nakedIntType *types.T) (tree.Expr, error)\n```\nParseExprWithInt parses a SQL scalar expression, using the given type when INT is used as type name in the SQL syntax. The caller is responsible for ensuring that the input is, in fact, a valid SQL scalar expression — the results are undefined if the string contains invalid SQL syntax.\n\n```go\nfunc ParseExprs(sql []string) (tree.Exprs, error)\n```\nParseExprs parses a comma-delimited sequence of SQL scalar expressions. The caller is responsible for ensuring that the input is, in fact, a comma-delimited sequence of SQL scalar expressions — the results are undefined if the string contains invalid SQL syntax.\n\n```go\nfunc ParseFunctionName(sql string) (*tree.UnresolvedObjectName, error)\n```\nParseFunctionName parses a function name. The function name must contain one or more name parts, using the full input SQL syntax: each name part containing special characters, or non-lowercase characters, must be enclosed in double quote. The name may not be an invalid function name (the caller is responsible for guaranteeing that only valid function names are provided as input).\n\n```go\nfunc ParseOne(sql string) (statements.Statement[tree.Statement], error)\n```\nParseOne parses a sql statement string, ensuring that it contains only a single statement, and returns that Statement. ParseOne will always interpret the INT and SERIAL types as 64-bit types, since this is used in various internal-execution paths where we might receive bits of SQL from other nodes. In general, we expect that all user-generated SQL has been run through the ParseWithInt() function.\n\n```go\nfunc ParseOneRetainComments(sql string) (statements.Statement[tree.Statement], error)\n```\nParseOneRetainComments is similar to ParseOne, but it retains scanned comments in the returned statement's Comment field.\n\n```go\nfunc ParseOneWithInt(\n\tsql string, nakedIntType *types.T,\n) (statements.Statement[tree.Statement], error)\n```\nParseOneWithInt is similar to ParseOn but interprets the INT and SERIAL types as the provided integer type.\n\n```go\nfunc ParseQualifiedTableName(sql string) (*tree.TableName, error)\n```\nParseQualifiedTableName parses a possibly qualified table name. The table name must contain one or more name parts, using the full input SQL syntax: each name part containing special characters, or non-lowercase characters, must be enclosed in double quote. The name may not be an invalid table name (the caller is responsible for guaranteeing that only valid table names are provided as input).\n\n```go\nfunc ParseTableName(sql string) (*tree.UnresolvedObjectName, error)\n```\nParseTableName parses a table name. The table name must contain one or more name parts, using the full input SQL syntax: each name part containing special characters, or non-lowercase characters, must be enclosed in double quote. The name may not be an invalid table name (the caller is responsible for guaranteeing that only valid table names are provided as input).\n\n```go\nfunc ParseTablePattern(sql string) (tree.TablePattern, error)\n```\nParseTablePattern parses a table pattern. The table name must contain one or more name parts, using the full input SQL syntax: each name part containing special characters, or non-lowercase characters, must be enclosed in double quote. The name may not be an invalid table name (the caller is responsible for guaranteeing that only valid table names are provided as input). The last part may be '\\*' to denote a wildcard.\n\n```go\nfunc ParseWithInt(sql string, nakedIntType *types.T) (statements.Statements, error)\n```\nParseWithInt parses a sql statement string and returns a list of Statements. The INT token will result in the specified TInt type.\n\n```go\nfunc PopulateErrorDetails(\n\ttokID int32, lastTokStr string, lastTokPos int32, lastErr error, lIn string,\n) error\n```\nPopulateErrorDetails properly wraps the \"last error\" field in the lexer.\n\n```go\nfunc RunShowSyntax(\n\tctx context.Context,\n\tstmt string,\n\treport func(ctx context.Context, field, msg string),\n\treportErr func(ctx context.Context, err error),\n)\n```\nRunShowSyntax analyzes the syntax and reports its structure as data for the client. Even an error is reported as data.\n\nSince errors won't propagate to the client as an error, but as a result, the usual code path to capture and record errors will not be triggered. Instead, the caller can pass a reportErr closure to capture errors instead. May be nil.\n\n```go\nfunc SplitFirstStatement(sql string) (pos int, ok bool)\n```\nSplitFirstStatement returns the length of the prefix of the string up to and including the first semicolon that separates statements. If there is no including the first semicolon that separates statements. If there is no semicolon, returns ok=false.\n\n## Types\n\n```go\ntype HelpMessage struct {\n\t// Command is set if the message is about a statement.\n\tCommand string\n\t// Function is set if the message is about a built-in function.\n\tFunction string\n\n\t// HelpMessageBody contains the details of the message.\n\tHelpMessageBody\n}\n```\nHelpMessage describes a contextual help message.\n\n```go\nfunc (h *HelpMessage) Format(w io.Writer)\n```\nFormat prints out details about the message onto the specified output stream.\n\n```go\nfunc (h *HelpMessage) String() string\n```\nString implements the fmt.String interface.\n\n```go\ntype HelpMessageBody struct {\n\tCategory         string\n\tShortDescription string\n\tText             string\n\tSeeAlso          string\n}\n```\nHelpMessageBody defines the body of a help text. The messages are structured to facilitate future help navigation functionality.\n\n```go\ntype Parser struct {\n\t// contains filtered or unexported fields\n}\n```\nParser wraps a scanner, parser and other utilities present in the parser package.\n\n```go\nfunc (p *Parser) Parse(sql string) (statements.Statements, error)\n```\nParse parses the sql and returns a list of statements.\n\n```go\nfunc (p *Parser) ParseWithInt(sql string, nakedIntType *types.T) (statements.Statements, error)\n```\nParseWithInt parses a sql statement string and returns a list of Statements. The INT token will result in the specified TInt type.\n\n```go\ntype TokenString struct {\n\tTokenID int32\n\tStr     string\n}\n```\nTokenString is the unit value returned by Tokens.\n\n```go\nfunc Tokens(sql string) (tokens []TokenString, ok bool)\n```\nTokens decomposes the input into lexical tokens.\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/sql/parser","name":"parser","synopsis":"Package parser contains exposes a SQL parser for cockroach.","isRedistributable":true}
