{"modulePath":"github.com/c4pt0r/Cockroach","version":"v0.0.0-20150906015802-4b82dee5d4b7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\nCode generated by go yacc.\n\n## Constants\n\n```go\nconst ABORT = 57358\n```\n\n```go\nconst ABSOLUTE = 57359\n```\n\n```go\nconst ACCESS = 57360\n```\n\n```go\nconst ACTION = 57361\n```\n\n```go\nconst ADD = 57362\n```\n\n```go\nconst ADMIN = 57363\n```\n\n```go\nconst AFTER = 57364\n```\n\n```go\nconst AGGREGATE = 57365\n```\n\n```go\nconst ALL = 57366\n```\n\n```go\nconst ALSO = 57367\n```\n\n```go\nconst ALTER = 57368\n```\n\n```go\nconst ALWAYS = 57369\n```\n\n```go\nconst ANALYSE = 57370\n```\n\n```go\nconst ANALYZE = 57371\n```\n\n```go\nconst AND = 57372\n```\n\n```go\nconst ANY = 57373\n```\n\n```go\nconst ARRAY = 57374\n```\n\n```go\nconst AS = 57375\n```\n\n```go\nconst ASC = 57376\n```\n\n```go\nconst ASSERTION = 57377\n```\n\n```go\nconst ASSIGNMENT = 57378\n```\n\n```go\nconst ASYMMETRIC = 57379\n```\n\n```go\nconst AT = 57380\n```\n\n```go\nconst ATTRIBUTE = 57381\n```\n\n```go\nconst AUTHORIZATION = 57382\n```\n\n```go\nconst BACKWARD = 57383\n```\n\n```go\nconst BCONST = 57349\n```\n\n```go\nconst BEFORE = 57384\n```\n\n```go\nconst BEGIN = 57385\n```\n\n```go\nconst BETWEEN = 57386\n```\n\n```go\nconst BIGINT = 57387\n```\n\n```go\nconst BINARY = 57388\n```\n\n```go\nconst BIT = 57389\n```\n\n```go\nconst BLOB = 57390\n```\n\n```go\nconst BOOL = 57391\n```\n\n```go\nconst BOOLEAN = 57392\n```\n\n```go\nconst BOTH = 57393\n```\n\n```go\nconst BY = 57394\n```\n\n```go\nconst BYTES = 57395\n```\n\n```go\nconst CACHE = 57396\n```\n\n```go\nconst CALLED = 57397\n```\n\n```go\nconst CASCADE = 57398\n```\n\n```go\nconst CASCADED = 57399\n```\n\n```go\nconst CASE = 57400\n```\n\n```go\nconst CAST = 57401\n```\n\n```go\nconst CHAIN = 57402\n```\n\n```go\nconst CHAR = 57403\n```\n\n```go\nconst CHARACTER = 57404\n```\n\n```go\nconst CHARACTERISTICS = 57405\n```\n\n```go\nconst CHECK = 57406\n```\n\n```go\nconst CHECKPOINT = 57407\n```\n\n```go\nconst CLASS = 57408\n```\n\n```go\nconst CLOSE = 57409\n```\n\n```go\nconst CLUSTER = 57410\n```\n\n```go\nconst COALESCE = 57411\n```\n\n```go\nconst COLLATE = 57412\n```\n\n```go\nconst COLLATION = 57413\n```\n\n```go\nconst COLUMN = 57414\n```\n\n```go\nconst COLUMNS = 57415\n```\n\n```go\nconst COMMENT = 57416\n```\n\n```go\nconst COMMENTS = 57417\n```\n\n```go\nconst COMMIT = 57418\n```\n\n```go\nconst COMMITTED = 57419\n```\n\n```go\nconst CONCAT = 57420\n```\n\n```go\nconst CONCURRENTLY = 57421\n```\n\n```go\nconst CONFIGURATION = 57422\n```\n\n```go\nconst CONFLICT = 57423\n```\n\n```go\nconst CONNECTION = 57424\n```\n\n```go\nconst CONSTRAINT = 57425\n```\n\n```go\nconst CONSTRAINTS = 57426\n```\n\n```go\nconst CONTENT = 57427\n```\n\n```go\nconst CONTINUE = 57428\n```\n\n```go\nconst CONVERSION = 57429\n```\n\n```go\nconst COPY = 57430\n```\n\n```go\nconst COST = 57431\n```\n\n```go\nconst CREATE = 57432\n```\n\n```go\nconst CROSS = 57433\n```\n\n```go\nconst CSV = 57434\n```\n\n```go\nconst CUBE = 57435\n```\n\n```go\nconst CURRENT = 57436\n```\n\n```go\nconst CURRENT_CATALOG = 57437\n```\n\n```go\nconst CURRENT_DATE = 57438\n```\n\n```go\nconst CURRENT_ROLE = 57439\n```\n\n```go\nconst CURRENT_TIME = 57440\n```\n\n```go\nconst CURRENT_TIMESTAMP = 57441\n```\n\n```go\nconst CURRENT_USER = 57442\n```\n\n```go\nconst CURSOR = 57443\n```\n\n```go\nconst CYCLE = 57444\n```\n\n```go\nconst DATA = 57445\n```\n\n```go\nconst DATABASE = 57446\n```\n\n```go\nconst DATABASES = 57447\n```\n\n```go\nconst DATE = 57448\n```\n\n```go\nconst DAY = 57449\n```\n\n```go\nconst DEALLOCATE = 57450\n```\n\n```go\nconst DEC = 57451\n```\n\n```go\nconst DECIMAL = 57452\n```\n\n```go\nconst DECLARE = 57453\n```\n\n```go\nconst DEFAULT = 57454\n```\n\n```go\nconst DEFAULTS = 57455\n```\n\n```go\nconst DEFERRABLE = 57456\n```\n\n```go\nconst DEFERRED = 57457\n```\n\n```go\nconst DEFINER = 57458\n```\n\n```go\nconst DELETE = 57459\n```\n\n```go\nconst DELIMITER = 57460\n```\n\n```go\nconst DELIMITERS = 57461\n```\n\n```go\nconst DESC = 57462\n```\n\n```go\nconst DICTIONARY = 57463\n```\n\n```go\nconst DISABLE = 57464\n```\n\n```go\nconst DISCARD = 57465\n```\n\n```go\nconst DISTINCT = 57466\n```\n\n```go\nconst DO = 57467\n```\n\n```go\nconst DOMAIN = 57468\n```\n\n```go\nconst DOT_DOT = 57353\n```\n\n```go\nconst DOUBLE = 57469\n```\n\n```go\nconst DROP = 57470\n```\n\n```go\nconst EACH = 57471\n```\n\n```go\nconst ELSE = 57472\n```\n\n```go\nconst ENABLE = 57473\n```\n\n```go\nconst ENCODING = 57474\n```\n\n```go\nconst ENCRYPTED = 57475\n```\n\n```go\nconst END = 57476\n```\n\n```go\nconst ENUM = 57477\n```\n\n```go\nconst ERROR = 57357\n```\n\n```go\nconst ESCAPE = 57478\n```\n\n```go\nconst EVENT = 57479\n```\n\n```go\nconst EXCEPT = 57480\n```\n\n```go\nconst EXCLUDE = 57481\n```\n\n```go\nconst EXCLUDING = 57482\n```\n\n```go\nconst EXCLUSIVE = 57483\n```\n\n```go\nconst EXECUTE = 57484\n```\n\n```go\nconst EXISTS = 57485\n```\n\n```go\nconst EXPLAIN = 57486\n```\n\n```go\nconst EXTENSION = 57487\n```\n\n```go\nconst EXTERNAL = 57488\n```\n\n```go\nconst EXTRACT = 57489\n```\n\n```go\nconst FALSE = 57490\n```\n\n```go\nconst FAMILY = 57491\n```\n\n```go\nconst FCONST = 57347\n```\n\n```go\nconst FETCH = 57492\n```\n\n```go\nconst FILTER = 57493\n```\n\n```go\nconst FIRST = 57494\n```\n\n```go\nconst FLOAT = 57495\n```\n\n```go\nconst FOLLOWING = 57496\n```\n\n```go\nconst FOR = 57497\n```\n\n```go\nconst FORCE = 57498\n```\n\n```go\nconst FOREIGN = 57499\n```\n\n```go\nconst FORWARD = 57500\n```\n\n```go\nconst FREEZE = 57501\n```\n\n```go\nconst FROM = 57502\n```\n\n```go\nconst FULL = 57503\n```\n\n```go\nconst FUNCTION = 57504\n```\n\n```go\nconst FUNCTIONS = 57505\n```\n\n```go\nconst GLOBAL = 57506\n```\n\n```go\nconst GRANT = 57507\n```\n\n```go\nconst GRANTED = 57508\n```\n\n```go\nconst GRANTS = 57509\n```\n\n```go\nconst GREATER_EQUALS = 57355\n```\n\n```go\nconst GREATEST = 57510\n```\n\n```go\nconst GROUP = 57511\n```\n\n```go\nconst GROUPING = 57512\n```\n\n```go\nconst HANDLER = 57513\n```\n\n```go\nconst HAVING = 57514\n```\n\n```go\nconst HEADER = 57515\n```\n\n```go\nconst HOLD = 57516\n```\n\n```go\nconst HOUR = 57517\n```\n\n```go\nconst ICONST = 57350\n```\n\n```go\nconst IDENT = 57346\n```\n\n```go\nconst IDENTITY = 57518\n```\n\n```go\nconst IF = 57519\n```\n\n```go\nconst IMMEDIATE = 57520\n```\n\n```go\nconst IMMUTABLE = 57521\n```\n\n```go\nconst IMPLICIT = 57522\n```\n\n```go\nconst IMPORT = 57523\n```\n\n```go\nconst IN = 57524\n```\n\n```go\nconst INCLUDING = 57525\n```\n\n```go\nconst INCREMENT = 57526\n```\n\n```go\nconst INDEX = 57527\n```\n\n```go\nconst INDEXES = 57528\n```\n\n```go\nconst INHERIT = 57529\n```\n\n```go\nconst INHERITS = 57530\n```\n\n```go\nconst INITIALLY = 57531\n```\n\n```go\nconst INLINE = 57532\n```\n\n```go\nconst INNER = 57533\n```\n\n```go\nconst INOUT = 57534\n```\n\n```go\nconst INPUT = 57535\n```\n\n```go\nconst INSENSITIVE = 57536\n```\n\n```go\nconst INSERT = 57537\n```\n\n```go\nconst INSTEAD = 57538\n```\n\n```go\nconst INT = 57539\n```\n\n```go\nconst INT64 = 57540\n```\n\n```go\nconst INTEGER = 57541\n```\n\n```go\nconst INTERSECT = 57542\n```\n\n```go\nconst INTERVAL = 57543\n```\n\n```go\nconst INTO = 57544\n```\n\n```go\nconst INVOKER = 57545\n```\n\n```go\nconst IS = 57546\n```\n\n```go\nconst ISOLATION = 57547\n```\n\n```go\nconst JOIN = 57548\n```\n\n```go\nconst KEY = 57549\n```\n\n```go\nconst LABEL = 57550\n```\n\n```go\nconst LANGUAGE = 57551\n```\n\n```go\nconst LARGE = 57552\n```\n\n```go\nconst LAST = 57553\n```\n\n```go\nconst LATERAL = 57554\n```\n\n```go\nconst LEADING = 57555\n```\n\n```go\nconst LEAKPROOF = 57556\n```\n\n```go\nconst LEAST = 57557\n```\n\n```go\nconst LEFT = 57558\n```\n\n```go\nconst LESS_EQUALS = 57354\n```\n\n```go\nconst LEVEL = 57559\n```\n\n```go\nconst LIKE = 57560\n```\n\n```go\nconst LIMIT = 57561\n```\n\n```go\nconst LISTEN = 57562\n```\n\n```go\nconst LOAD = 57563\n```\n\n```go\nconst LOCAL = 57564\n```\n\n```go\nconst LOCALTIME = 57565\n```\n\n```go\nconst LOCALTIMESTAMP = 57566\n```\n\n```go\nconst LOCATION = 57567\n```\n\n```go\nconst LOCK = 57568\n```\n\n```go\nconst LOCKED = 57569\n```\n\n```go\nconst LOGGED = 57570\n```\n\n```go\nconst LSHIFT = 57571\n```\n\n```go\nconst MAPPING = 57572\n```\n\n```go\nconst MATCH = 57573\n```\n\n```go\nconst MATERIALIZED = 57574\n```\n\n```go\nconst MAXVALUE = 57575\n```\n\n```go\nconst MINUTE = 57576\n```\n\n```go\nconst MINVALUE = 57577\n```\n\n```go\nconst MODE = 57578\n```\n\n```go\nconst MONTH = 57579\n```\n\n```go\nconst MOVE = 57580\n```\n\n```go\nconst NAME = 57581\n```\n\n```go\nconst NAMES = 57582\n```\n\n```go\nconst NATIONAL = 57583\n```\n\n```go\nconst NATURAL = 57584\n```\n\n```go\nconst NCHAR = 57585\n```\n\n```go\nconst NEXT = 57586\n```\n\n```go\nconst NO = 57587\n```\n\n```go\nconst NONE = 57588\n```\n\n```go\nconst NOT = 57589\n```\n\n```go\nconst NOTHING = 57590\n```\n\n```go\nconst NOTIFY = 57591\n```\n\n```go\nconst NOT_EQUALS = 57356\n```\n\n```go\nconst NOT_LA = 57756\n```\n\n```go\nconst NOWAIT = 57592\n```\n\n```go\nconst NULL = 57593\n```\n\n```go\nconst NULLIF = 57594\n```\n\n```go\nconst NULLS = 57595\n```\n\n```go\nconst NULLS_LA = 57757\n```\n\n```go\nconst NUMERIC = 57596\n```\n\n```go\nconst OBJECT = 57597\n```\n\n```go\nconst OF = 57598\n```\n\n```go\nconst OFF = 57599\n```\n\n```go\nconst OFFSET = 57600\n```\n\n```go\nconst OIDS = 57601\n```\n\n```go\nconst ON = 57602\n```\n\n```go\nconst ONLY = 57603\n```\n\n```go\nconst OPTION = 57604\n```\n\n```go\nconst OPTIONS = 57605\n```\n\n```go\nconst OR = 57606\n```\n\n```go\nconst ORDER = 57607\n```\n\n```go\nconst ORDINALITY = 57608\n```\n\n```go\nconst OUT = 57609\n```\n\n```go\nconst OUTER = 57610\n```\n\n```go\nconst OVER = 57611\n```\n\n```go\nconst OVERLAPS = 57612\n```\n\n```go\nconst OVERLAY = 57613\n```\n\n```go\nconst OWNED = 57614\n```\n\n```go\nconst OWNER = 57615\n```\n\n```go\nconst PARAM = 57351\n```\n\n```go\nconst PARSER = 57616\n```\n\n```go\nconst PARTIAL = 57617\n```\n\n```go\nconst PARTITION = 57618\n```\n\n```go\nconst PASSING = 57619\n```\n\n```go\nconst PASSWORD = 57620\n```\n\n```go\nconst PLACING = 57621\n```\n\n```go\nconst PLANS = 57622\n```\n\n```go\nconst POLICY = 57623\n```\n\n```go\nconst POSITION = 57624\n```\n\n```go\nconst POSTFIXOP = 57759\n```\n\n```go\nconst PRECEDING = 57625\n```\n\n```go\nconst PRECISION = 57626\n```\n\n```go\nconst PREPARE = 57628\n```\n\n```go\nconst PREPARED = 57629\n```\n\n```go\nconst PRESERVE = 57627\n```\n\n```go\nconst PRIMARY = 57630\n```\n\n```go\nconst PRIOR = 57631\n```\n\n```go\nconst PRIVILEGES = 57632\n```\n\n```go\nconst PROCEDURAL = 57633\n```\n\n```go\nconst PROCEDURE = 57634\n```\n\n```go\nconst PROGRAM = 57635\n```\n\n```go\nconst QUOTE = 57636\n```\n\n```go\nconst RANGE = 57637\n```\n\n```go\nconst READ = 57638\n```\n\n```go\nconst REAL = 57639\n```\n\n```go\nconst REASSIGN = 57640\n```\n\n```go\nconst RECHECK = 57641\n```\n\n```go\nconst RECURSIVE = 57642\n```\n\n```go\nconst REF = 57643\n```\n\n```go\nconst REFERENCES = 57644\n```\n\n```go\nconst REFRESH = 57645\n```\n\n```go\nconst REINDEX = 57646\n```\n\n```go\nconst RELATIVE = 57647\n```\n\n```go\nconst RELEASE = 57648\n```\n\n```go\nconst RENAME = 57649\n```\n\n```go\nconst REPEATABLE = 57650\n```\n\n```go\nconst REPLACE = 57651\n```\n\n```go\nconst REPLICA = 57652\n```\n\n```go\nconst RESET = 57653\n```\n\n```go\nconst RESTART = 57654\n```\n\n```go\nconst RESTRICT = 57655\n```\n\n```go\nconst RETURNING = 57656\n```\n\n```go\nconst RETURNS = 57657\n```\n\n```go\nconst REVOKE = 57658\n```\n\n```go\nconst RIGHT = 57659\n```\n\n```go\nconst ROLLBACK = 57660\n```\n\n```go\nconst ROLLUP = 57661\n```\n\n```go\nconst ROW = 57662\n```\n\n```go\nconst ROWS = 57663\n```\n\n```go\nconst RSHIFT = 57664\n```\n\n```go\nconst RULE = 57665\n```\n\n```go\nconst SAVEPOINT = 57666\n```\n\n```go\nconst SCONST = 57348\n```\n\n```go\nconst SCROLL = 57667\n```\n\n```go\nconst SEARCH = 57668\n```\n\n```go\nconst SECOND = 57669\n```\n\n```go\nconst SECURITY = 57670\n```\n\n```go\nconst SELECT = 57671\n```\n\n```go\nconst SEQUENCE = 57672\n```\n\n```go\nconst SEQUENCES = 57673\n```\n\n```go\nconst SERIALIZABLE = 57674\n```\n\n```go\nconst SERVER = 57675\n```\n\n```go\nconst SESSION = 57676\n```\n\n```go\nconst SESSION_USER = 57677\n```\n\n```go\nconst SET = 57678\n```\n\n```go\nconst SETOF = 57680\n```\n\n```go\nconst SETS = 57679\n```\n\n```go\nconst SHARE = 57681\n```\n\n```go\nconst SHOW = 57682\n```\n\n```go\nconst SIMILAR = 57683\n```\n\n```go\nconst SIMPLE = 57684\n```\n\n```go\nconst SKIP = 57685\n```\n\n```go\nconst SMALLINT = 57686\n```\n\n```go\nconst SNAPSHOT = 57687\n```\n\n```go\nconst SOME = 57688\n```\n\n```go\nconst SQL = 57689\n```\n\n```go\nconst STABLE = 57690\n```\n\n```go\nconst STANDALONE = 57691\n```\n\n```go\nconst START = 57692\n```\n\n```go\nconst STATEMENT = 57693\n```\n\n```go\nconst STATISTICS = 57694\n```\n\n```go\nconst STDIN = 57695\n```\n\n```go\nconst STDOUT = 57696\n```\n\n```go\nconst STRICT = 57697\n```\n\n```go\nconst STRING = 57698\n```\n\n```go\nconst STRIP = 57699\n```\n\n```go\nconst SUBSTRING = 57700\n```\n\n```go\nconst SYMMETRIC = 57701\n```\n\n```go\nconst SYSID = 57702\n```\n\n```go\nconst SYSTEM = 57703\n```\n\n```go\nconst TABLE = 57704\n```\n\n```go\nconst TABLES = 57705\n```\n\n```go\nconst TEXT = 57706\n```\n\n```go\nconst THEN = 57707\n```\n\n```go\nconst TIME = 57708\n```\n\n```go\nconst TIMESTAMP = 57709\n```\n\n```go\nconst TO = 57710\n```\n\n```go\nconst TRAILING = 57711\n```\n\n```go\nconst TRANSACTION = 57712\n```\n\n```go\nconst TRANSFORM = 57713\n```\n\n```go\nconst TREAT = 57714\n```\n\n```go\nconst TRIGGER = 57715\n```\n\n```go\nconst TRIM = 57716\n```\n\n```go\nconst TRUE = 57717\n```\n\n```go\nconst TRUNCATE = 57718\n```\n\n```go\nconst TRUSTED = 57719\n```\n\n```go\nconst TYPE = 57720\n```\n\n```go\nconst TYPECAST = 57352\n```\n\n```go\nconst TYPES = 57721\n```\n\n```go\nconst UMINUS = 57760\n```\n\n```go\nconst UNBOUNDED = 57722\n```\n\n```go\nconst UNCOMMITTED = 57723\n```\n\n```go\nconst UNENCRYPTED = 57724\n```\n\n```go\nconst UNION = 57725\n```\n\n```go\nconst UNIQUE = 57726\n```\n\n```go\nconst UNKNOWN = 57727\n```\n\n```go\nconst UNLISTEN = 57728\n```\n\n```go\nconst UNLOGGED = 57729\n```\n\n```go\nconst UNTIL = 57730\n```\n\n```go\nconst UPDATE = 57731\n```\n\n```go\nconst USER = 57732\n```\n\n```go\nconst USING = 57733\n```\n\n```go\nconst VACUUM = 57734\n```\n\n```go\nconst VALID = 57735\n```\n\n```go\nconst VALIDATE = 57736\n```\n\n```go\nconst VALUE = 57737\n```\n\n```go\nconst VALUES = 57738\n```\n\n```go\nconst VARCHAR = 57739\n```\n\n```go\nconst VARIADIC = 57740\n```\n\n```go\nconst VARYING = 57741\n```\n\n```go\nconst VERBOSE = 57742\n```\n\n```go\nconst VERSION = 57743\n```\n\n```go\nconst WHEN = 57744\n```\n\n```go\nconst WHERE = 57745\n```\n\n```go\nconst WINDOW = 57746\n```\n\n```go\nconst WITH = 57747\n```\n\n```go\nconst WITHIN = 57748\n```\n\n```go\nconst WITHOUT = 57749\n```\n\n```go\nconst WITH_LA = 57758\n```\n\n```go\nconst WORK = 57750\n```\n\n```go\nconst WRAPPER = 57751\n```\n\n```go\nconst WRITE = 57752\n```\n\n```go\nconst YEAR = 57753\n```\n\n```go\nconst YES = 57754\n```\n\n```go\nconst ZONE = 57755\n```\n\n## Variables\n\n```go\nvar (\n\t// DummyBool is a placeholder DBool value.\n\tDummyBool = DBool(false)\n\t// DummyInt is a placeholder DInt value.\n\tDummyInt = DInt(0)\n\t// DummyFloat is a placeholder DFloat value.\n\tDummyFloat = DFloat(0)\n\t// DummyString is a placeholder DString value.\n\tDummyString = DString(\"\")\n\t// DummyDate is a placeholder DDate value.\n\tDummyDate = DDate{}\n\t// DummyTimestamp is a placeholder DTimestamp value.\n\tDummyTimestamp = DTimestamp{}\n\t// DummyInterval is a placeholder DInterval value.\n\tDummyInterval = DInterval{}\n\t// DummyTuple is a placeholder DTuple value.\n\tDummyTuple = DTuple{}\n\n\t// DNull is the NULL Datum.\n\tDNull = dNull{}\n)\n```\n\n## Functions\n\n```go\nfunc FillArgs(stmt Statement, args Args) error\n```\nFillArgs replaces any placeholder nodes in the expression with arguments supplied with the query.\n\n```go\nfunc WalkStmt(v Visitor, stmt Statement)\n```\nWalkStmt walks the entire parsed stmt calling WalkExpr on each expression, and replacing each expression with the one returned by WalkExpr.\n\n## Types\n\n```go\ntype AliasedTableExpr struct {\n\tExpr SimpleTableExpr\n\tAs   Name\n}\n```\nAliasedTableExpr represents a table expression coupled with an optional alias.\n\n```go\nfunc (node *AliasedTableExpr) String() string\n```\n\n```go\ntype AndExpr struct {\n\tLeft, Right Expr\n}\n```\nAndExpr represents an AND expression.\n\n```go\nfunc (node *AndExpr) String() string\n```\n\n```go\ntype Args interface {\n\tArg(name string) (Datum, bool)\n}\n```\nArgs defines the interface for retrieving arguments. Return false for the second return value if the argument cannot be found.\n\n```go\ntype Array Exprs\n```\nArray represents an array constructor.\n\n```go\nfunc (node Array) String() string\n```\n\n```go\ntype ArrayIndirection struct {\n\tBegin Expr\n\tEnd   Expr\n}\n```\nArrayIndirection represents \"\\[\\\u003cbegin\u003e:\\\u003cend\u003e]\" in an indirection expression.\n\n```go\nfunc (a *ArrayIndirection) String() string\n```\n\n```go\ntype BeginTransaction struct{}\n```\nBeginTransaction represents a BEGIN statement\n\n```go\nfunc (node *BeginTransaction) String() string\n```\n\n```go\ntype BinaryExpr struct {\n\tOperator    BinaryOp\n\tLeft, Right Expr\n\t// contains filtered or unexported fields\n}\n```\nBinaryExpr represents a binary value expression.\n\n```go\nfunc (node *BinaryExpr) String() string\n```\n\n```go\ntype BinaryOp int\n```\nBinaryOp represents a binary operator.\n\n```go\nconst (\n\tBitand BinaryOp = iota\n\tBitor\n\tBitxor\n\tPlus\n\tMinus\n\tMult\n\tDiv\n\tMod\n\tConcat\n\tLShift\n\tRShift\n)\n```\nBinaryExpr.Operator\n\n```go\nfunc (i BinaryOp) String() string\n```\n\n```go\ntype BoolType struct {\n\tName string\n}\n```\nBoolType represents a BOOLEAN type.\n\n```go\nfunc (node *BoolType) String() string\n```\n\n```go\ntype BoolVal bool\n```\nBoolVal represents a boolean.\n\n```go\nfunc (node BoolVal) String() string\n```\n\n```go\ntype BytesType struct {\n\tName string\n}\n```\nBytesType represents a BYTES or BLOB type.\n\n```go\nfunc (node *BytesType) String() string\n```\n\n```go\ntype BytesVal string\n```\nBytesVal represents a string of unprintable value.\n\n```go\nfunc (node BytesVal) String() string\n```\n\n```go\ntype CaseExpr struct {\n\tExpr  Expr\n\tWhens []*When\n\tElse  Expr\n}\n```\nCaseExpr represents a CASE expression.\n\n```go\nfunc (node *CaseExpr) String() string\n```\n\n```go\ntype CastExpr struct {\n\tExpr Expr\n\tType ColumnType\n}\n```\nCastExpr represents a CAST(expr AS type) expression.\n\n```go\nfunc (n *CastExpr) String() string\n```\n\n```go\ntype ColumnConstraint interface {\n\t// contains filtered or unexported methods\n}\n```\nColumnConstraint represents a constraint on a column.\n\n```go\ntype ColumnTableDef struct {\n\tName       Name\n\tType       ColumnType\n\tNullable   Nullability\n\tPrimaryKey bool\n\tUnique     bool\n}\n```\nColumnTableDef represents a column definition within a CREATE TABLE statement.\n\n```go\nfunc (node *ColumnTableDef) String() string\n```\n\n```go\ntype ColumnType interface {\n\tfmt.Stringer\n\t// contains filtered or unexported methods\n}\n```\nColumnType represents a type in a column definition.\n\n```go\ntype CommitTransaction struct{}\n```\nCommitTransaction represents a COMMIT statement.\n\n```go\nfunc (node *CommitTransaction) String() string\n```\n\n```go\ntype ComparisonExpr struct {\n\tOperator    ComparisonOp\n\tLeft, Right Expr\n}\n```\nComparisonExpr represents a two-value comparison expression.\n\n```go\nfunc (node *ComparisonExpr) String() string\n```\n\n```go\ntype ComparisonOp int\n```\nComparisonOp represents a binary operator.\n\n```go\nconst (\n\tEQ ComparisonOp = iota\n\tLT\n\tGT\n\tLE\n\tGE\n\tNE\n\tIn\n\tNotIn\n\tLike\n\tNotLike\n\tSimilarTo\n\tNotSimilarTo\n)\n```\nComparisonExpr.Operator\n\n```go\nfunc (i ComparisonOp) String() string\n```\n\n```go\ntype CreateDatabase struct {\n\tIfNotExists bool\n\tName        Name\n}\n```\nCreateDatabase represents a CREATE DATABASE statement.\n\n```go\nfunc (node *CreateDatabase) String() string\n```\n\n```go\ntype CreateIndex struct {\n\tName        Name\n\tTable       *QualifiedName\n\tUnique      bool\n\tIfNotExists bool\n\tColumns     NameList\n}\n```\nCreateIndex represents a CREATE INDEX statement.\n\n```go\nfunc (node *CreateIndex) String() string\n```\n\n```go\ntype CreateTable struct {\n\tIfNotExists bool\n\tTable       *QualifiedName\n\tDefs        TableDefs\n}\n```\nCreateTable represents a CREATE TABLE statement.\n\n```go\nfunc (node *CreateTable) String() string\n```\n\n```go\ntype DBool bool\n```\nDBool is the boolean Datum.\n\n```go\nfunc (d DBool) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DBool) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DBool) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DBool) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DBool) String() string\n```\n\n```go\nfunc (d DBool) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DDate struct {\n\ttime.Time\n}\n```\nDDate is the date Datum.\n\n```go\nfunc ParseDate(s DString) (DDate, error)\n```\nParseDate parses a date.\n\n```go\nfunc (d DDate) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DDate) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DDate) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DDate) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DDate) String() string\n```\n\n```go\nfunc (d DDate) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DFloat float64\n```\nDFloat is the float Datum.\n\n```go\nfunc (d DFloat) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DFloat) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DFloat) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DFloat) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DFloat) String() string\n```\n\n```go\nfunc (d DFloat) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DInt int64\n```\nDInt is the int Datum.\n\n```go\nfunc (d DInt) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DInt) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DInt) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DInt) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DInt) String() string\n```\n\n```go\nfunc (d DInt) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DInterval struct {\n\ttime.Duration\n}\n```\nDInterval is the interval Datum.\n\n```go\nfunc (d DInterval) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DInterval) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DInterval) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DInterval) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DInterval) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DReference interface {\n\tDatum() Datum\n}\n```\nDReference holds a pointer to a Datum. It is used as a level of indirection to replace QualifiedNames with a node whose value can change on each row.\n\n```go\ntype DString string\n```\nDString is the string Datum.\n\n```go\nfunc (d DString) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DString) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DString) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DString) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DString) String() string\n```\n\n```go\nfunc (d DString) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DTimestamp struct {\n\ttime.Time\n}\n```\nDTimestamp is the timestamp Datum.\n\n```go\nfunc ParseTimestamp(s DString) (DTimestamp, error)\n```\nParseTimestamp parses the timestamp.\n\n```go\nfunc (d DTimestamp) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DTimestamp) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DTimestamp) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DTimestamp) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DTimestamp) String() string\n```\nTODO:(vivek) implement SET TIME ZONE to improve presentation.\n\n```go\nfunc (d DTimestamp) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DTuple []Datum\n```\nDTuple is the tuple Datum.\n\n```go\nfunc (d DTuple) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d DTuple) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DTuple) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DTuple) Len() int\n```\n\n```go\nfunc (d DTuple) Less(i, j int) bool\n```\n\n```go\nfunc (d DTuple) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DTuple) String() string\n```\n\n```go\nfunc (d DTuple) Swap(i, j int)\n```\n\n```go\nfunc (d DTuple) Type() string\n```\nType implements the Datum interface.\n\n```go\ntype DateType struct {\n}\n```\nDateType represents a DATE type.\n\n```go\nfunc (node *DateType) String() string\n```\n\n```go\ntype Datum interface {\n\tExpr\n\tType() string\n\t// Compare returns -1 if the receiver is less than other, 0 if receiver is\n\t// equal to other and +1 if receiver is greater than other.\n\tCompare(other Datum) int\n\t// Next returns the next datum. If the receiver is \"a\" and the returned datum\n\t// is \"b\", then \"a \u003c b\" and no other datum will compare such that \"a \u003c c \u003c\n\t// b\".\n\tNext() Datum\n\t// IsMax returns true if the datum is equal to the maximum value the datum\n\t// type can hold.\n\tIsMax() bool\n\t// IsMin returns true if the datum is equal to the minimum value the datum\n\t// type can hold.\n\tIsMin() bool\n}\n```\nA Datum holds either a bool, int64, float64, string or \\[]Datum.\n\n```go\nfunc EvalExpr(expr Expr) (Datum, error)\n```\nEvalExpr evaluates an SQL expression. Expression evaluation is a mostly straightforward walk over the parse tree. The only significant complexity is the handling of types and implicit conversions. See binOps and cmpOps for more details. Note that expression evaluation returns an error if certain node types are encountered: ValArg, QualifiedName or Subquery. These nodes should be replaced prior to expression evaluation by an appropriate WalkExpr. For example, ValArg should be replace by the argument passed from the client.\n\n```go\nfunc TypeCheckExpr(expr Expr) (Datum, error)\n```\nTypeCheckExpr type-checks an SQL expression. Expression checking is a mostly straightforward walk over the parse tree.\n\n```go\ntype DecimalType struct {\n\tName  string\n\tPrec  int\n\tScale int\n}\n```\nDecimalType represents a DECIMAL or NUMERIC type.\n\n```go\nfunc (node *DecimalType) String() string\n```\n\n```go\ntype Delete struct {\n\tTable TableExpr\n\tWhere *Where\n}\n```\nDelete represents a DELETE statement.\n\n```go\nfunc (node *Delete) String() string\n```\n\n```go\ntype Direction int\n```\nDirection for ordering results.\n\n```go\nconst (\n\tDefaultDirection Direction = iota\n\tAscending\n\tDescending\n)\n```\nDirection values.\n\n```go\nfunc (d Direction) String() string\n```\n\n```go\ntype DropDatabase struct {\n\tName     Name\n\tIfExists bool\n}\n```\nDropDatabase represents a DROP DATABASE statement.\n\n```go\nfunc (node *DropDatabase) String() string\n```\n\n```go\ntype DropTable struct {\n\tNames    QualifiedNames\n\tIfExists bool\n}\n```\nDropTable represents a DROP TABLE statement.\n\n```go\nfunc (node *DropTable) String() string\n```\n\n```go\ntype ExistsExpr struct {\n\tSubquery *Subquery\n}\n```\nExistsExpr represents an EXISTS expression.\n\n```go\nfunc (node *ExistsExpr) String() string\n```\n\n```go\ntype Explain struct {\n\tOptions   []string\n\tStatement Statement\n}\n```\nExplain represents an EXPLAIN statement.\n\n```go\nfunc (node *Explain) String() string\n```\n\n```go\ntype Expr interface {\n\tfmt.Stringer\n\t// contains filtered or unexported methods\n}\n```\nExpr represents an expression.\n\n```go\nfunc NormalizeAndTypeCheckExpr(expr Expr) (Expr, error)\n```\nNormalizeAndTypeCheckExpr is a combination of NormalizeExpr and TypeCheckExpr. It returns returns an error if either of NormalizeExpr or TypeCheckExpr return one, and otherwise returns the Expr returned by NormalizeExpr.\n\n```go\nfunc NormalizeExpr(expr Expr) (Expr, error)\n```\nNormalizeExpr normalizes an expression, simplifying where possible, but guaranteeing that the result of evaluating the expression is unchanged. Example normalizations:\n\n\t(a)                   -\u003e a\n\tROW(a, b, c)          -\u003e (a, b, c)\n\ta = 1 + 1             -\u003e a = 2\n\ta + 1 = 2             -\u003e a = 1\n\ta BETWEEN b AND c     -\u003e (a \u003e= b) AND (a \u003c= c)\n\ta NOT BETWEEN b AND c -\u003e (a \u003c b) OR (a \u003e c)\n\n```go\nfunc WalkExpr(v Visitor, expr Expr) Expr\n```\nWalkExpr traverses the nodes in an expression. It starts by calling v.Visit(expr, true). If the visitor returned by v.Visit(expr, true) is not nil it recursively calls WalkExpr on the children of the node returned by v.Visit(expr, true) and finishes with a call to v.Visit(expr, false).\n\n```go\ntype Exprs []Expr\n```\nExprs represents a list of value expressions. It's not a valid expression because it's not parenthesized.\n\n```go\nfunc (node Exprs) String() string\n```\n\n```go\ntype FloatType struct {\n\tName string\n\tPrec int\n}\n```\nFloatType represents a REAL, DOUBLE or FLOAT type.\n\n```go\nfunc (node *FloatType) String() string\n```\n\n```go\ntype FuncExpr struct {\n\tName     *QualifiedName\n\tDistinct bool\n\tExprs    Exprs\n\t// contains filtered or unexported fields\n}\n```\nFuncExpr represents a function call.\n\n```go\nfunc (node *FuncExpr) String() string\n```\n\n```go\ntype Grant struct {\n\tPrivileges privilege.List\n\tTargets    TargetList\n\tGrantees   NameList\n}\n```\nGrant represents a GRANT statement.\n\n```go\nfunc (node *Grant) String() string\n```\n\n```go\ntype GroupBy []Expr\n```\nGroupBy represents a GROUP BY clause.\n\n```go\nfunc (node GroupBy) String() string\n```\n\n```go\ntype IndexIndirection Name\n```\nIndexIndirection represents \":\\\u003cname\u003e\" in an indirection expression.\n\n```go\nfunc (n IndexIndirection) String() string\n```\n\n```go\ntype IndexTableDef struct {\n\tName       Name\n\tPrimaryKey bool\n\tUnique     bool\n\tColumns    NameList\n}\n```\nIndexTableDef represents an index definition within a CREATE TABLE statement.\n\n```go\nfunc (node *IndexTableDef) String() string\n```\n\n```go\ntype Indirection []IndirectionElem\n```\nIndirection represents an indirection expression composed of a series of indirection elements.\n\n```go\nfunc (i Indirection) String() string\n```\n\n```go\ntype IndirectionElem interface {\n\tString() string\n\t// contains filtered or unexported methods\n}\n```\nIndirectionElem is a single element in an indirection expression.\n\n```go\ntype Insert struct {\n\tTable   *QualifiedName\n\tColumns QualifiedNames\n\tRows    SelectStatement\n}\n```\nInsert represents an INSERT statement.\n\n```go\nfunc (node *Insert) String() string\n```\n\n```go\ntype IntType struct {\n\tName string\n\tN    int\n}\n```\nIntType represents an INT, INTEGER, SMALLINT or BIGINT type.\n\n```go\nfunc (node *IntType) String() string\n```\n\n```go\ntype IntVal int64\n```\nIntVal represents an integer.\n\n```go\nfunc (node IntVal) String() string\n```\n\n```go\ntype IntervalType struct {\n}\n```\nIntervalType represents a INTERVAL type\n\n```go\nfunc (node *IntervalType) String() string\n```\n\n```go\ntype JoinCond interface {\n\t// contains filtered or unexported methods\n}\n```\nJoinCond represents a join condition.\n\n```go\ntype JoinTableExpr struct {\n\tJoin  string\n\tLeft  TableExpr\n\tRight TableExpr\n\tCond  JoinCond\n}\n```\nJoinTableExpr represents a TableExpr that's a JOIN operation.\n\n```go\nfunc (node *JoinTableExpr) String() string\n```\n\n```go\ntype Limit struct {\n\tOffset, Count Expr\n}\n```\nLimit represents a LIMIT clause.\n\n```go\nfunc (node *Limit) String() string\n```\n\n```go\ntype Name string\n```\nA Name is an SQL identifier.\n\n```go\nfunc (n Name) String() string\n```\nString formats an SQL identifier, applying proper escaping rules.\n\n```go\ntype NameIndirection Name\n```\nNameIndirection represents \".\\\u003cname\u003e\" in an indirection expression.\n\n```go\nfunc (n NameIndirection) String() string\n```\n\n```go\ntype NameList []string\n```\nA NameList is a list of identifier. TODO(tschottdorf): would be nicer to have \\[]Name here but unless we want to introduce new types to the grammar, NameList(\\[]string{...}) needs to work.\n\n```go\nfunc (l NameList) String() string\n```\nString formats the contained names as a comma-separated, escaped string.\n\n```go\ntype NotExpr struct {\n\tExpr Expr\n}\n```\nNotExpr represents a NOT expression.\n\n```go\nfunc (node *NotExpr) String() string\n```\n\n```go\ntype NotNullConstraint struct{}\n```\nNotNullConstraint represents NOT NULL on a column.\n\n```go\ntype NullCheck struct {\n\tNot  bool\n\tExpr Expr\n}\n```\nNullCheck represents an IS NULL or an IS NOT NULL expression.\n\n```go\nfunc (node *NullCheck) String() string\n```\n\n```go\ntype NullConstraint struct{}\n```\nNullConstraint represents NULL on a column.\n\n```go\ntype Nullability int\n```\nNullability represents either NULL, NOT NULL or an unspecified value (silent NULL).\n\n```go\nconst (\n\tNotNull Nullability = iota\n\tNull\n\tSilentNull\n)\n```\nThe values for NullType.\n\n```go\ntype NumVal string\n```\nNumVal represents a number.\n\n```go\nfunc (node NumVal) String() string\n```\n\n```go\ntype OnJoinCond struct {\n\tExpr Expr\n}\n```\nOnJoinCond represents an ON join condition.\n\n```go\nfunc (node *OnJoinCond) String() string\n```\n\n```go\ntype OrExpr struct {\n\tLeft, Right Expr\n}\n```\nOrExpr represents an OR expression.\n\n```go\nfunc (node *OrExpr) String() string\n```\n\n```go\ntype Order struct {\n\tExpr      Expr\n\tDirection Direction\n}\n```\nOrder represents an ordering expression.\n\n```go\nfunc (node *Order) String() string\n```\n\n```go\ntype OrderBy []*Order\n```\nOrderBy represents an ORDER By clause.\n\n```go\nfunc (node OrderBy) String() string\n```\n\n```go\ntype ParenExpr struct {\n\tExpr Expr\n}\n```\nParenExpr represents a parenthesized expression.\n\n```go\nfunc (node *ParenExpr) String() string\n```\n\n```go\ntype ParenSelect struct {\n\tSelect SelectStatement\n}\n```\nParenSelect represents a parenthesized SELECT/UNION/VALUES statement.\n\n```go\nfunc (node *ParenSelect) String() string\n```\n\n```go\ntype ParenTableExpr struct {\n\tExpr TableExpr\n}\n```\nParenTableExpr represents a parenthesized TableExpr.\n\n```go\nfunc (node *ParenTableExpr) String() string\n```\n\n```go\ntype PrimaryKeyConstraint struct{}\n```\nPrimaryKeyConstraint represents NULL on a column.\n\n```go\ntype QualifiedName struct {\n\tBase     Name\n\tIndirect Indirection\n\t// contains filtered or unexported fields\n}\n```\nQualifiedName is a base name and an optional indirection expression.\n\n```go\nfunc StarExpr() *QualifiedName\n```\nStarExpr is a convenience function that represents an unqualified \"\\*\".\n\n```go\nfunc (n *QualifiedName) Column() string\n```\nColumn returns the column portion of the name. Note that the returned string is not quoted even if the name is a keyword.\n\n```go\nfunc (n *QualifiedName) Database() string\n```\nDatabase returns the database portion of the name. Note that the returned string is not quoted even if the name is a keyword.\n\n```go\nfunc (n *QualifiedName) Index() string\n```\nIndex returns the index portion of the name. Note that the returned string is not quoted even if the name is a keyword.\n\n```go\nfunc (n *QualifiedName) IsStar() bool\n```\nIsStar returns true iff the qualified name contains matches \"\".\\* or table.\\*.\n\n```go\nfunc (n *QualifiedName) NormalizeColumnName() error\n```\nNormalizeColumnName normalizes the qualified name to contain a table name as prefix, returning an error if unable to do so or if the name is not a valid column name (e.g. it contains too many indirections). If normalization occurred, the modified qualified name will have n.Base == \"\" to indicate no explicit table was specified. The incoming qualified name should have one of the following forms:\n\n\t*\n\ttable.*\n\tcolumn\n\tcolumn[array-indirection]\n\ttable.column\n\ttable.column[array-indirection]\n\nNote that \"table\" may be the empty string. On successful normalization the qualified name will have one of the forms:\n\n\ttable.*\n\ttable.column\n\ttable.column[array-indirection]\n\n```go\nfunc (n *QualifiedName) NormalizeTableName(database string) error\n```\nNormalizeTableName normalizes the qualified name to contain a database name as prefix, returning an error if unable to do so or if the name is not a valid table name (e.g. it contains an array indirection). The incoming qualified name should have one of the following forms:\n\n\ttable\n\tdatabase.table\n\ttable@index\n\tdatabase.table@index\n\nOn successful normalization, the qualified name will have the form:\n\n\tdatabase.table@index\n\n```go\nfunc (n *QualifiedName) String() string\n```\n\n```go\nfunc (n *QualifiedName) Table() string\n```\nTable returns the table portion of the name. Note that the returned string is not quoted even if the name is a keyword.\n\n```go\ntype QualifiedNames []*QualifiedName\n```\nQualifiedNames represents a command separated list (see the String method) of qualified names.\n\n```go\nfunc (n QualifiedNames) String() string\n```\n\n```go\ntype RangeCond struct {\n\tNot      bool\n\tLeft     Expr\n\tFrom, To Expr\n}\n```\nRangeCond represents a BETWEEN or a NOT BETWEEN expression.\n\n```go\nfunc (node *RangeCond) String() string\n```\n\n```go\ntype RenameColumn struct {\n\tTable   *QualifiedName\n\tName    Name\n\tNewName Name\n\t// IfExists refers to the table, not the column.\n\tIfExists bool\n}\n```\nRenameColumn represents a RENAME COLUMN statement.\n\n```go\nfunc (node *RenameColumn) String() string\n```\n\n```go\ntype RenameDatabase struct {\n\tName    Name\n\tNewName Name\n}\n```\nRenameDatabase represents a RENAME DATABASE statement.\n\n```go\nfunc (node *RenameDatabase) String() string\n```\n\n```go\ntype RenameIndex struct {\n\tName     *QualifiedName\n\tNewName  Name\n\tIfExists bool\n}\n```\nRenameIndex represents a RENAME INDEX statement.\n\n```go\nfunc (node *RenameIndex) String() string\n```\n\n```go\ntype RenameTable struct {\n\tName     *QualifiedName\n\tNewName  *QualifiedName\n\tIfExists bool\n}\n```\nRenameTable represents a RENAME TABLE statement.\n\n```go\nfunc (node *RenameTable) String() string\n```\n\n```go\ntype Revoke struct {\n\tPrivileges privilege.List\n\tTargets    TargetList\n\tGrantees   NameList\n}\n```\nRevoke represents a REVOKE statements. PrivilegeList and TargetList are defined in grant.go\n\n```go\nfunc (node *Revoke) String() string\n```\n\n```go\ntype RollbackTransaction struct{}\n```\nRollbackTransaction represents a ROLLBACK statement.\n\n```go\nfunc (node *RollbackTransaction) String() string\n```\n\n```go\ntype Row Exprs\n```\nRow represents a parenthesized list of expressions. Similar to Tuple except in how it is textually represented.\n\n```go\nfunc (node Row) String() string\n```\n\n```go\ntype Select struct {\n\tDistinct string\n\tExprs    SelectExprs\n\tFrom     TableExprs\n\tWhere    *Where\n\tGroupBy  GroupBy\n\tHaving   *Where\n\tOrderBy  OrderBy\n\tLimit    *Limit\n\tLock     string\n\t// contains filtered or unexported fields\n}\n```\nSelect represents a SELECT statement.\n\n```go\nfunc (node *Select) String() string\n```\n\n```go\ntype SelectExpr struct {\n\tExpr Expr\n\tAs   Name\n}\n```\nSelectExpr represents a SELECT expression.\n\n```go\nfunc StarSelectExpr() SelectExpr\n```\nStarSelectExpr is a convenience function that represents an unqualified \"\\*\" in a select expression.\n\n```go\nfunc (node SelectExpr) String() string\n```\n\n```go\ntype SelectExprs []SelectExpr\n```\nSelectExprs represents SELECT expressions.\n\n```go\nfunc (node SelectExprs) String() string\n```\n\n```go\ntype SelectStatement interface {\n\tStatement\n\t// contains filtered or unexported methods\n}\n```\nSelectStatement any SELECT statement.\n\n```go\ntype Set struct {\n\tName   *QualifiedName\n\tValues Exprs\n}\n```\nSet represents a SET statement.\n\n```go\nfunc (node *Set) String() string\n```\n\n```go\ntype Show struct {\n\tName string\n}\n```\nShow represents a SHOW statement.\n\n```go\nfunc (node *Show) String() string\n```\n\n```go\ntype ShowColumns struct {\n\tTable *QualifiedName\n}\n```\nShowColumns represents a SHOW COLUMNS statement.\n\n```go\nfunc (node *ShowColumns) String() string\n```\n\n```go\ntype ShowDatabases struct {\n}\n```\nShowDatabases represents a SHOW DATABASES statement.\n\n```go\nfunc (node *ShowDatabases) String() string\n```\n\n```go\ntype ShowGrants struct {\n\tTargets  *TargetList\n\tGrantees NameList\n}\n```\nShowGrants represents a SHOW GRANTS statement. TargetList is defined in grant.go.\n\n```go\nfunc (node *ShowGrants) String() string\n```\n\n```go\ntype ShowIndex struct {\n\tTable *QualifiedName\n}\n```\nShowIndex represents a SHOW INDEX statement.\n\n```go\nfunc (node *ShowIndex) String() string\n```\n\n```go\ntype ShowTables struct {\n\tName *QualifiedName\n}\n```\nShowTables represents a SHOW TABLES statement.\n\n```go\nfunc (node *ShowTables) String() string\n```\n\n```go\ntype SimpleTableExpr interface {\n\t// contains filtered or unexported methods\n}\n```\nSimpleTableExpr represents a simple table expression.\n\n```go\ntype StarIndirection string\n```\nStarIndirection represents \".\\*\" in an indirection expression.\n\n```go\nfunc (s StarIndirection) String() string\n```\n\n```go\ntype Statement interface {\n\tfmt.Stringer\n\t// contains filtered or unexported methods\n}\n```\nStatement represents a statement.\n\n```go\ntype StatementList []Statement\n```\nStatementList is a list of statements.\n\n```go\nfunc Parse(sql string, syntax Syntax) (StatementList, error)\n```\nParse parses the sql and returns a list of statements.\n\n```go\nfunc ParseTraditional(sql string) (StatementList, error)\n```\nParseTraditional is short-hand for Parse(sql, Traditional)\n\n```go\nfunc (l StatementList) String() string\n```\n\n```go\ntype StrVal string\n```\nStrVal represents a string value.\n\n```go\nfunc (node StrVal) String() string\n```\n\n```go\ntype StringType struct {\n\tName string\n\tN    int\n}\n```\nStringType represents a STRING, CHAR or VARCHAR type.\n\n```go\nfunc (node *StringType) String() string\n```\n\n```go\ntype Subquery struct {\n\tSelect SelectStatement\n}\n```\nSubquery represents a subquery.\n\n```go\nfunc (node *Subquery) String() string\n```\n\n```go\ntype Syntax int\n```\nSyntax is an enum of the various syntax types.\n\n```go\nconst (\n\tTraditional Syntax = iota\n\tModern\n)\n```\n\n```go\nfunc (i Syntax) String() string\n```\n\n```go\ntype TableDef interface {\n\t// contains filtered or unexported methods\n}\n```\nTableDef represents a column or index definition within a CREATE TABLE statement.\n\n```go\ntype TableDefs []TableDef\n```\nTableDefs represents a list of table definitions.\n\n```go\nfunc (node TableDefs) String() string\n```\n\n```go\ntype TableExpr interface {\n\t// contains filtered or unexported methods\n}\n```\nTableExpr represents a table expression.\n\n```go\ntype TableExprs []TableExpr\n```\nTableExprs represents a list of table expressions.\n\n```go\nfunc (node TableExprs) String() string\n```\n\n```go\ntype TargetList struct {\n\tDatabases NameList\n\tTables    QualifiedNames\n}\n```\nTargetList represents a list of targets. Only one field may be non-nil.\n\n```go\nfunc (tl TargetList) String() string\n```\n\n```go\ntype TargetType int\n```\nTargetType represents the type of target.\n\n```go\nconst (\n\tTargetDatabase TargetType = iota\n)\n```\nEnums for target and privilege types.\n\n```go\nfunc (tt TargetType) String() string\n```\n\n```go\ntype TimestampType struct {\n}\n```\nTimestampType represents a TIMESTAMP type.\n\n```go\nfunc (node *TimestampType) String() string\n```\n\n```go\ntype Truncate struct {\n\tTables QualifiedNames\n}\n```\nTruncate represents a TRUNCATE statement.\n\n```go\nfunc (node *Truncate) String() string\n```\n\n```go\ntype Tuple Exprs\n```\nTuple represents a parenthesized list of expressions.\n\n```go\nfunc (node Tuple) String() string\n```\n\n```go\ntype UnaryExpr struct {\n\tOperator UnaryOp\n\tExpr     Expr\n\t// contains filtered or unexported fields\n}\n```\nUnaryExpr represents a unary value expression.\n\n```go\nfunc (node *UnaryExpr) String() string\n```\n\n```go\ntype UnaryOp int\n```\nUnaryOp represents a unary operator.\n\n```go\nconst (\n\tUnaryPlus UnaryOp = iota\n\tUnaryMinus\n\tUnaryComplement\n)\n```\nUnaryExpr.Operator\n\n```go\nfunc (i UnaryOp) String() string\n```\n\n```go\ntype Union struct {\n\tType        string\n\tLeft, Right SelectStatement\n}\n```\nUnion represents a UNION statement.\n\n```go\nfunc (node *Union) String() string\n```\n\n```go\ntype UniqueConstraint struct{}\n```\nUniqueConstraint represents UNIQUE on a column.\n\n```go\ntype Update struct {\n\tTable TableExpr\n\tExprs UpdateExprs\n\tWhere *Where\n}\n```\nUpdate represents an UPDATE statement.\n\n```go\nfunc (node *Update) String() string\n```\n\n```go\ntype UpdateExpr struct {\n\tName *QualifiedName\n\tExpr Expr\n}\n```\nUpdateExpr represents an update expression.\n\n```go\nfunc (node *UpdateExpr) String() string\n```\n\n```go\ntype UpdateExprs []*UpdateExpr\n```\nUpdateExprs represents a list of update expressions.\n\n```go\nfunc (node UpdateExprs) String() string\n```\n\n```go\ntype UsingJoinCond struct {\n\tCols NameList\n}\n```\nUsingJoinCond represents a USING join condition.\n\n```go\nfunc (node *UsingJoinCond) String() string\n```\n\n```go\ntype ValArg string\n```\nValArg represents a named bind var argument.\n\n```go\nfunc (node ValArg) String() string\n```\n\n```go\ntype Values []Tuple\n```\nValues represents a VALUES clause.\n\n```go\nfunc (node Values) String() string\n```\n\n```go\ntype Visitor interface {\n\tVisit(expr Expr, pre bool) (Visitor, Expr)\n}\n```\nThe Visitor Visit method is invoked for each Expr node encountered by WalkExpr. The returned Expr replaces the pointer to the visited expression in the parent node and can be used for rewriting expressions. The pre argument indicates whether the visit is a pre-order or post-order visit. On a pre-order visit, if the result Visitor is nil children nodes are skipped from the traversal.\n\n```go\ntype When struct {\n\tCond Expr\n\tVal  Expr\n}\n```\nWhen represents a WHEN sub-expression.\n\n```go\nfunc (node *When) String() string\n```\n\n```go\ntype Where struct {\n\tType string\n\tExpr Expr\n}\n```\nWhere represents a WHERE or HAVING clause.\n\n```go\nfunc (node *Where) String() string\n```\n\n","path":"github.com/c4pt0r/Cockroach/sql/parser","name":"parser","synopsis":"Code generated by go yacc.","isRedistributable":true}
