{"modulePath":"github.com/phobos182/cockroach","version":"v0.0.0-20160330191133-bf013fd33fc2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Constants\n\n```go\nconst (\n\tDistinct funcType\n\tAll\n)\n```\nFuncExpr.Type\n\n```go\nconst ACTION = 57358\n```\n\n```go\nconst ADD = 57359\n```\n\n```go\nconst ALL = 57360\n```\n\n```go\nconst ALTER = 57361\n```\n\n```go\nconst ANALYSE = 57362\n```\n\n```go\nconst ANALYZE = 57363\n```\n\n```go\nconst AND = 57364\n```\n\n```go\nconst ANY = 57365\n```\n\n```go\nconst ARRAY = 57366\n```\n\n```go\nconst AS = 57367\n```\n\n```go\nconst ASC = 57368\n```\n\n```go\nconst ASYMMETRIC = 57369\n```\n\n```go\nconst AT = 57370\n```\n\n```go\nconst BCONST = 57349\n```\n\n```go\nconst BEGIN = 57371\n```\n\n```go\nconst BETWEEN = 57372\n```\n\n```go\nconst BIGINT = 57373\n```\n\n```go\nconst BIT = 57374\n```\n\n```go\nconst BLOB = 57375\n```\n\n```go\nconst BOOL = 57376\n```\n\n```go\nconst BOOLEAN = 57377\n```\n\n```go\nconst BOTH = 57378\n```\n\n```go\nconst BY = 57379\n```\n\n```go\nconst BYTEA = 57380\n```\n\n```go\nconst BYTES = 57381\n```\n\n```go\nconst CASCADE = 57382\n```\n\n```go\nconst CASE = 57383\n```\n\n```go\nconst CAST = 57384\n```\n\n```go\nconst CHAR = 57385\n```\n\n```go\nconst CHARACTER = 57386\n```\n\n```go\nconst CHARACTERISTICS = 57387\n```\n\n```go\nconst CHECK = 57388\n```\n\n```go\nconst COALESCE = 57389\n```\n\n```go\nconst COLLATE = 57390\n```\n\n```go\nconst COLLATION = 57391\n```\n\n```go\nconst COLUMN = 57392\n```\n\n```go\nconst COLUMNS = 57393\n```\n\n```go\nconst COMMIT = 57394\n```\n\n```go\nconst COMMITTED = 57395\n```\n\n```go\nconst CONCAT = 57396\n```\n\n```go\nconst CONFLICT = 57397\n```\n\n```go\nconst CONSTRAINT = 57398\n```\n\n```go\nconst COVERING = 57399\n```\n\n```go\nconst CREATE = 57400\n```\n\n```go\nconst CROSS = 57401\n```\n\n```go\nconst CUBE = 57402\n```\n\n```go\nconst CURRENT = 57403\n```\n\n```go\nconst CURRENT_CATALOG = 57404\n```\n\n```go\nconst CURRENT_DATE = 57405\n```\n\n```go\nconst CURRENT_ROLE = 57406\n```\n\n```go\nconst CURRENT_TIME = 57407\n```\n\n```go\nconst CURRENT_TIMESTAMP = 57408\n```\n\n```go\nconst CURRENT_USER = 57409\n```\n\n```go\nconst CYCLE = 57410\n```\n\n```go\nconst DATA = 57411\n```\n\n```go\nconst DATABASE = 57412\n```\n\n```go\nconst DATABASES = 57413\n```\n\n```go\nconst DATE = 57414\n```\n\n```go\nconst DAY = 57415\n```\n\n```go\nconst DEC = 57416\n```\n\n```go\nconst DECIMAL = 57417\n```\n\n```go\nconst DEFAULT = 57418\n```\n\n```go\nconst DEFERRABLE = 57419\n```\n\n```go\nconst DELETE = 57420\n```\n\n```go\nconst DESC = 57421\n```\n\n```go\nconst DISTINCT = 57422\n```\n\n```go\nconst DO = 57423\n```\n\n```go\nconst DOT_DOT = 57353\n```\n\n```go\nconst DOUBLE = 57424\n```\n\n```go\nconst DROP = 57425\n```\n\n```go\nconst ELSE = 57426\n```\n\n```go\nconst END = 57427\n```\n\n```go\nconst ERROR = 57357\n```\n\n```go\nconst ESCAPE = 57428\n```\n\n```go\nconst EXCEPT = 57429\n```\n\n```go\nconst EXISTS = 57430\n```\n\n```go\nconst EXPLAIN = 57431\n```\n\n```go\nconst EXTRACT = 57432\n```\n\n```go\nconst FALSE = 57433\n```\n\n```go\nconst FCONST = 57347\n```\n\n```go\nconst FETCH = 57434\n```\n\n```go\nconst FILTER = 57435\n```\n\n```go\nconst FIRST = 57436\n```\n\n```go\nconst FLOAT = 57437\n```\n\n```go\nconst FOLLOWING = 57438\n```\n\n```go\nconst FOR = 57439\n```\n\n```go\nconst FOREIGN = 57440\n```\n\n```go\nconst FROM = 57441\n```\n\n```go\nconst FULL = 57442\n```\n\n```go\nconst GRANT = 57443\n```\n\n```go\nconst GRANTS = 57444\n```\n\n```go\nconst GREATER_EQUALS = 57355\n```\n\n```go\nconst GREATEST = 57445\n```\n\n```go\nconst GROUP = 57446\n```\n\n```go\nconst GROUPING = 57447\n```\n\n```go\nconst HAVING = 57448\n```\n\n```go\nconst HIGH = 57449\n```\n\n```go\nconst HOUR = 57450\n```\n\n```go\nconst ICONST = 57350\n```\n\n```go\nconst IDENT = 57346\n```\n\n```go\nconst IF = 57451\n```\n\n```go\nconst IFNULL = 57452\n```\n\n```go\nconst IN = 57453\n```\n\n```go\nconst INDEX = 57454\n```\n\n```go\nconst INDEXES = 57455\n```\n\n```go\nconst INITIALLY = 57456\n```\n\n```go\nconst INNER = 57457\n```\n\n```go\nconst INSERT = 57458\n```\n\n```go\nconst INT = 57459\n```\n\n```go\nconst INT64 = 57460\n```\n\n```go\nconst INTEGER = 57461\n```\n\n```go\nconst INTERSECT = 57462\n```\n\n```go\nconst INTERVAL = 57463\n```\n\n```go\nconst INTO = 57464\n```\n\n```go\nconst IS = 57465\n```\n\n```go\nconst ISOLATION = 57466\n```\n\n```go\nconst JOIN = 57467\n```\n\n```go\nconst KEY = 57468\n```\n\n```go\nconst KEYS = 57469\n```\n\n```go\nconst LATERAL = 57470\n```\n\n```go\nconst LEADING = 57471\n```\n\n```go\nconst LEAST = 57472\n```\n\n```go\nconst LEFT = 57473\n```\n\n```go\nconst LESS_EQUALS = 57354\n```\n\n```go\nconst LEVEL = 57474\n```\n\n```go\nconst LIKE = 57475\n```\n\n```go\nconst LIMIT = 57476\n```\n\n```go\nconst LOCAL = 57477\n```\n\n```go\nconst LOCALTIME = 57478\n```\n\n```go\nconst LOCALTIMESTAMP = 57479\n```\n\n```go\nconst LOW = 57480\n```\n\n```go\nconst LSHIFT = 57481\n```\n\n```go\nconst MATCH = 57482\n```\n\n```go\nconst MINUTE = 57483\n```\n\n```go\nconst MONTH = 57484\n```\n\n```go\nconst NAME = 57485\n```\n\n```go\nconst NAMES = 57486\n```\n\n```go\nconst NATURAL = 57487\n```\n\n```go\nconst NEXT = 57488\n```\n\n```go\nconst NO = 57489\n```\n\n```go\nconst NORMAL = 57490\n```\n\n```go\nconst NOT = 57491\n```\n\n```go\nconst NOTHING = 57492\n```\n\n```go\nconst NOT_EQUALS = 57356\n```\n\n```go\nconst NOT_LA = 57594\n```\n\n```go\nconst NULL = 57493\n```\n\n```go\nconst NULLIF = 57494\n```\n\n```go\nconst NULLS = 57495\n```\n\n```go\nconst NUMERIC = 57496\n```\n\n```go\nconst OF = 57497\n```\n\n```go\nconst OFF = 57498\n```\n\n```go\nconst OFFSET = 57499\n```\n\n```go\nconst ON = 57500\n```\n\n```go\nconst ONLY = 57501\n```\n\n```go\nconst OR = 57502\n```\n\n```go\nconst ORDER = 57503\n```\n\n```go\nconst ORDINALITY = 57504\n```\n\n```go\nconst OUT = 57505\n```\n\n```go\nconst OUTER = 57506\n```\n\n```go\nconst OVER = 57507\n```\n\n```go\nconst OVERLAPS = 57508\n```\n\n```go\nconst OVERLAY = 57509\n```\n\n```go\nconst PARAM = 57351\n```\n\n```go\nconst PARTIAL = 57510\n```\n\n```go\nconst PARTITION = 57511\n```\n\n```go\nconst PLACING = 57512\n```\n\n```go\nconst POSITION = 57513\n```\n\n```go\nconst POSTFIXOP = 57596\n```\n\n```go\nconst PRECEDING = 57514\n```\n\n```go\nconst PRECISION = 57515\n```\n\n```go\nconst PRIMARY = 57516\n```\n\n```go\nconst PRIORITY = 57517\n```\n\n```go\nconst RANGE = 57518\n```\n\n```go\nconst READ = 57519\n```\n\n```go\nconst REAL = 57520\n```\n\n```go\nconst RECURSIVE = 57521\n```\n\n```go\nconst REF = 57522\n```\n\n```go\nconst REFERENCES = 57523\n```\n\n```go\nconst RELEASE = 57526\n```\n\n```go\nconst RENAME = 57524\n```\n\n```go\nconst REPEATABLE = 57525\n```\n\n```go\nconst RESTRICT = 57527\n```\n\n```go\nconst RETURNING = 57528\n```\n\n```go\nconst REVOKE = 57529\n```\n\n```go\nconst RIGHT = 57530\n```\n\n```go\nconst ROLLBACK = 57531\n```\n\n```go\nconst ROLLUP = 57532\n```\n\n```go\nconst ROW = 57533\n```\n\n```go\nconst ROWS = 57534\n```\n\n```go\nconst RSHIFT = 57535\n```\n\n```go\nconst RestartSavepointName string = \"COCKROACH_RESTART\"\n```\nRestartSavepointName is the only savepoint name that we accept, modulo capitalization.\n\n```go\nconst SAVEPOINT = 57536\n```\n\n```go\nconst SCONST = 57348\n```\n\n```go\nconst SEARCH = 57537\n```\n\n```go\nconst SECOND = 57538\n```\n\n```go\nconst SELECT = 57539\n```\n\n```go\nconst SERIALIZABLE = 57540\n```\n\n```go\nconst SESSION = 57541\n```\n\n```go\nconst SESSION_USER = 57542\n```\n\n```go\nconst SET = 57543\n```\n\n```go\nconst SHOW = 57544\n```\n\n```go\nconst SIMILAR = 57545\n```\n\n```go\nconst SIMPLE = 57546\n```\n\n```go\nconst SMALLINT = 57547\n```\n\n```go\nconst SNAPSHOT = 57548\n```\n\n```go\nconst SOME = 57549\n```\n\n```go\nconst SQL = 57550\n```\n\n```go\nconst START = 57551\n```\n\n```go\nconst STORING = 57554\n```\n\n```go\nconst STRICT = 57552\n```\n\n```go\nconst STRING = 57553\n```\n\n```go\nconst SUBSTRING = 57555\n```\n\n```go\nconst SYMMETRIC = 57556\n```\n\n```go\nconst TABLE = 57557\n```\n\n```go\nconst TABLES = 57558\n```\n\n```go\nconst TEXT = 57559\n```\n\n```go\nconst THEN = 57560\n```\n\n```go\nconst TIME = 57561\n```\n\n```go\nconst TIMESTAMP = 57562\n```\n\n```go\nconst TO = 57563\n```\n\n```go\nconst TRAILING = 57564\n```\n\n```go\nconst TRANSACTION = 57565\n```\n\n```go\nconst TREAT = 57566\n```\n\n```go\nconst TRIM = 57567\n```\n\n```go\nconst TRUE = 57568\n```\n\n```go\nconst TRUNCATE = 57569\n```\n\n```go\nconst TYPE = 57570\n```\n\n```go\nconst TYPECAST = 57352\n```\n\n```go\nconst UMINUS = 57597\n```\n\n```go\nconst UNBOUNDED = 57571\n```\n\n```go\nconst UNCOMMITTED = 57572\n```\n\n```go\nconst UNION = 57573\n```\n\n```go\nconst UNIQUE = 57574\n```\n\n```go\nconst UNKNOWN = 57575\n```\n\n```go\nconst UPDATE = 57576\n```\n\n```go\nconst USER = 57577\n```\n\n```go\nconst USING = 57578\n```\n\n```go\nconst VALID = 57579\n```\n\n```go\nconst VALIDATE = 57580\n```\n\n```go\nconst VALUE = 57581\n```\n\n```go\nconst VALUES = 57582\n```\n\n```go\nconst VARCHAR = 57583\n```\n\n```go\nconst VARIADIC = 57584\n```\n\n```go\nconst VARYING = 57585\n```\n\n```go\nconst WHEN = 57586\n```\n\n```go\nconst WHERE = 57587\n```\n\n```go\nconst WINDOW = 57588\n```\n\n```go\nconst WITH = 57589\n```\n\n```go\nconst WITHIN = 57590\n```\n\n```go\nconst WITHOUT = 57591\n```\n\n```go\nconst WITH_LA = 57595\n```\n\n```go\nconst YEAR = 57592\n```\n\n```go\nconst ZONE = 57593\n```\n\n## Functions\n\n```go\nfunc ContainsVars(expr Expr) bool\n```\nContainsVars returns true if the expression contains any variables.\n\n```go\nfunc SimilarEscape(pattern string) string\n```\nSimilarEscape converts a SQL:2008 regexp pattern to POSIX style, so it can be used by our regexp engine.\n\n```go\nfunc ValidateRestartCheckpoint(savepoint string) *roachpb.Error\n```\nValidateRestartCheckpoint checks that a checkpoint name is our magic restart value. We accept everything with the desired prefix because at least the C++ libpqxx appends sequence numbers to the savepoint name specified by the user.\n\n```go\nfunc WalkExprConst(v Visitor, expr Expr)\n```\nWalkExprConst is a variant of WalkExpr for visitors that do not modify the expression.\n\n## Types\n\n```go\ntype AliasClause struct {\n\tAlias Name\n\tCols  NameList\n}\n```\nAliasClause represents an alias, optionally with a column list: \"AS name\" or \"AS name(col1, col2)\".\n\n```go\nfunc (a AliasClause) String() string\n```\n\n```go\ntype AliasedTableExpr struct {\n\tExpr SimpleTableExpr\n\tAs   AliasClause\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 AlterTable struct {\n\tIfExists bool\n\tTable    *QualifiedName\n\tCmds     AlterTableCmds\n}\n```\nAlterTable represents an ALTER TABLE statement.\n\n```go\nfunc (*AlterTable) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTable) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *AlterTable) String() string\n```\n\n```go\ntype AlterTableAddColumn struct {\n\tIfNotExists bool\n\tColumnDef   *ColumnTableDef\n\t// contains filtered or unexported fields\n}\n```\nAlterTableAddColumn represents an ADD COLUMN command.\n\n```go\nfunc (node *AlterTableAddColumn) String() string\n```\n\n```go\ntype AlterTableAddConstraint struct {\n\tConstraintDef ConstraintTableDef\n}\n```\nAlterTableAddConstraint represents an ADD CONSTRAINT command.\n\n```go\nfunc (node *AlterTableAddConstraint) String() string\n```\n\n```go\ntype AlterTableCmd interface {\n\t// contains filtered or unexported methods\n}\n```\nAlterTableCmd represents a table modification operation.\n\n```go\ntype AlterTableCmds []AlterTableCmd\n```\nAlterTableCmds represents a list of table alterations.\n\n```go\nfunc (node AlterTableCmds) String() string\n```\n\n```go\ntype AlterTableDropColumn struct {\n\tIfExists bool\n\tColumn   string\n\t// contains filtered or unexported fields\n}\n```\nAlterTableDropColumn represents a DROP COLUMN command.\n\n```go\nfunc (node *AlterTableDropColumn) String() string\n```\n\n```go\ntype AlterTableDropConstraint struct {\n\tIfExists   bool\n\tConstraint string\n}\n```\nAlterTableDropConstraint represents a DROP CONSTRAINT command.\n\n```go\nfunc (node *AlterTableDropConstraint) String() string\n```\n\n```go\ntype AndExpr struct {\n\tLeft, Right Expr\n}\n```\nAndExpr represents an AND expression.\n\n```go\nfunc (expr *AndExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *AndExpr) String() string\n```\n\n```go\nfunc (expr *AndExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *AndExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 struct {\n\tExprs Exprs\n}\n```\nArray represents an array constructor.\n\n```go\nfunc (t Array) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *Array) String() string\n```\n\n```go\nfunc (expr *Array) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *Array) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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\tIsolation    IsolationLevel\n\tUserPriority UserPriority\n}\n```\nBeginTransaction represents a BEGIN statement\n\n```go\nfunc (*BeginTransaction) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*BeginTransaction) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (expr *BinaryExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *BinaryExpr) String() string\n```\n\n```go\nfunc (expr *BinaryExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *BinaryExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 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 CaseExpr struct {\n\tExpr  Expr\n\tWhens []*When\n\tElse  Expr\n}\n```\nCaseExpr represents a CASE expression.\n\n```go\nfunc (expr *CaseExpr) CopyNode() *CaseExpr\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (expr *CaseExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *CaseExpr) String() string\n```\n\n```go\nfunc (expr *CaseExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *CaseExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 (expr *CastExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (n *CastExpr) String() string\n```\n\n```go\nfunc (expr *CastExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *CastExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype CoalesceExpr struct {\n\tName  string\n\tExprs Exprs\n}\n```\nCoalesceExpr represents a COALESCE or IFNULL expression.\n\n```go\nfunc (expr *CoalesceExpr) CopyNode() *CoalesceExpr\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (expr *CoalesceExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *CoalesceExpr) String() string\n```\n\n```go\nfunc (expr *CoalesceExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *CoalesceExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ColumnDefault struct {\n\tExpr Expr\n}\n```\nColumnDefault represents a DEFAULT clause for a column.\n\n```go\ntype ColumnQualification interface {\n\t// contains filtered or unexported methods\n}\n```\nColumnQualification 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\tDefaultExpr Expr\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 (*CommitTransaction) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommitTransaction) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *CommitTransaction) String() string\n```\n\n```go\ntype ComparisonExpr struct {\n\tOperator    ComparisonOp\n\tLeft, Right Expr\n\t// contains filtered or unexported fields\n}\n```\nComparisonExpr represents a two-value comparison expression.\n\n```go\nfunc (expr *ComparisonExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *ComparisonExpr) String() string\n```\n\n```go\nfunc (expr *ComparisonExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *ComparisonExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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\tIsDistinctFrom\n\tIsNotDistinctFrom\n\tIs\n\tIsNot\n)\n```\nComparisonExpr.Operator\n\n```go\nfunc (i ComparisonOp) String() string\n```\n\n```go\ntype ConstraintTableDef interface {\n\tTableDef\n\t// contains filtered or unexported methods\n}\n```\nConstraintTableDef represents a constraint definition within a CREATE TABLE statement.\n\n```go\ntype CreateDatabase struct {\n\tIfNotExists bool\n\tName        Name\n}\n```\nCreateDatabase represents a CREATE DATABASE statement.\n\n```go\nfunc (*CreateDatabase) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateDatabase) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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     IndexElemList\n\t// Extra columns to be stored together with the indexed ones as an optimization\n\t// for improved reading performance.\n\tStoring NameList\n}\n```\nCreateIndex represents a CREATE INDEX statement.\n\n```go\nfunc (*CreateIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*CreateTable) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateTable) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 GetBool(d Datum) (DBool, error)\n```\nGetBool gets DBool or an error (also treats NULL as false, not an error).\n\n```go\nfunc (d DBool) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (t DBool) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DBool) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DBool) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev 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\nfunc (expr DBool) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DBool) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DBool) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DBytes string\n```\nDBytes is the bytes Datum. The underlying type is a string because we want the immutability, but this may contain arbitrary bytes.\n\n```go\nfunc (d DBytes) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (t DBytes) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DBytes) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DBytes) HasPrev() bool\n```\nHasPrev implements the Datum interface.\n\n```go\nfunc (d DBytes) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d DBytes) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DBytes) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DBytes) Prev() Datum\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d DBytes) String() string\n```\n\n```go\nfunc (d DBytes) Type() string\n```\nType implements the Datum interface.\n\n```go\nfunc (expr DBytes) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DBytes) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DBytes) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DDate int64\n```\nDDate is the date Datum represented as the number of days after the Unix epoch.\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 (t DDate) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DDate) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DDate) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev 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\nfunc (expr DDate) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DDate) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DDate) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DDecimal struct {\n\tinf.Dec\n}\n```\nDDecimal is the decimal Datum.\n\n```go\nfunc (d *DDecimal) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (t *DDecimal) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d *DDecimal) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d *DDecimal) HasPrev() bool\n```\nHasPrev implements the Datum interface.\n\n```go\nfunc (d *DDecimal) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DDecimal) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Prev() Datum\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DDecimal) String() string\n```\n\n```go\nfunc (d *DDecimal) Type() string\n```\nType implements the Datum interface.\n\n```go\nfunc (expr DDecimal) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d *DDecimal) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr *DDecimal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr 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 (t DFloat) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DFloat) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DFloat) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev 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\nfunc (expr DFloat) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DFloat) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DFloat) Walk(_ Visitor) Expr\n```\nWalk implements the Expr 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 (t DInt) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DInt) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DInt) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev 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\nfunc (expr DInt) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DInt) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DInt) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DInterval struct {\n\tduration.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 (t DInterval) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DInterval) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DInterval) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d DInterval) String() string\n```\nString implements the Datum interface.\n\n```go\nfunc (d DInterval) Type() string\n```\nType implements the Datum interface.\n\n```go\nfunc (expr DInterval) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DInterval) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DInterval) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\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 (t DString) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DString) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DString) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev 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\nfunc (expr DString) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DString) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DString) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTimestamp struct {\n\ttime.Time\n}\n```\nDTimestamp is the timestamp Datum.\n\n```go\nfunc (d DTimestamp) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (t DTimestamp) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DTimestamp) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DTimestamp) HasPrev() bool\n```\nHasPrev 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) Prev() Datum\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d DTimestamp) String() string\n```\n\n```go\nfunc (d DTimestamp) Type() string\n```\nType implements the Datum interface.\n\n```go\nfunc (expr DTimestamp) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DTimestamp) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DTimestamp) Walk(_ Visitor) Expr\n```\nWalk implements the Expr 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 (t DTuple) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DTuple) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DTuple) HasPrev() bool\n```\nHasPrev 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) Normalize()\n```\nNormalize sorts and uniques the datum tuple.\n\n```go\nfunc (d DTuple) Prev() Datum\n```\nPrev 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\nfunc (expr DTuple) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DTuple) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (expr DTuple) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DValArg struct {\n\t// contains filtered or unexported fields\n}\n```\nDValArg is the named bind var argument Datum.\n\n```go\nfunc (d DValArg) Compare(other Datum) int\n```\nCompare implements the Datum interface.\n\n```go\nfunc (t DValArg) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (d DValArg) HasNext() bool\n```\nHasNext implements the Datum interface.\n\n```go\nfunc (d DValArg) HasPrev() bool\n```\nHasPrev implements the Datum interface.\n\n```go\nfunc (DValArg) IsMax() bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (DValArg) IsMin() bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d DValArg) Next() Datum\n```\nNext implements the Datum interface.\n\n```go\nfunc (d DValArg) Prev() Datum\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d DValArg) String() string\n```\n\n```go\nfunc (DValArg) Type() string\n```\nType implements the Datum interface.\n\n```go\nfunc (expr DValArg) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (d DValArg) TypeEqual(other Datum) bool\n```\nTypeEqual implements the Datum interface.\n\n```go\nfunc (DValArg) Variable()\n```\nVariable implements the VariableExpr interface.\n\n```go\nfunc (expr DValArg) Walk(_ Visitor) Expr\n```\nWalk implements the Expr 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\t// Type returns the (user-friendly) name of the type.\n\tType() string\n\t// TypeEqual determines if the receiver and the other Datum have the same\n\t// type or not. This method should be used for asserting the type of all\n\t// Datum, with the exception of DNull, where it is safe/encouraged to perform\n\t// a direct equivalence check.\n\tTypeEqual(other Datum) bool\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\t// TODO(nvanbenschoten) Should we look into merging this with cmpOps?\n\tCompare(other Datum) int\n\t// HasPrev specifies if Prev() can be used to compute a previous value for\n\t// a datum. For example, DBytes doesn't support it (the previous for BB is BAZZZ..).\n\tHasPrev() bool\n\t// Prev returns the previous datum. If the receiver is \"b\" and the returned datum\n\t// is \"a\", then \"a \u003c b\" and no other datum will compare such that \"a \u003c c \u003c\n\t// b\".\n\t// The return value is undefined if `IsMin()`.\n\tPrev() Datum\n\t// HasNext specifies if Next() can be used to compute a next value for a\n\t// datum. For example, DDecimal doesn't support it (the next for 1.0 is 1.00..1).\n\tHasNext() bool\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\t// The return value is undefined if `IsMax()`.\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\nTODO(nvanbenschoten) It might be worth it in the future to make all Datum implementations receive on pointer types to provide more control over memory allocations when packaging and unpackaging concrete types to and from their Datum interface. This would allow us to make optimizations in terms of shared buffer preallocations.\n\n```go\nvar (\n\t// DummyBool is a placeholder DBool value.\n\tDummyBool Datum = DBool(false)\n\t// DummyInt is a placeholder DInt value.\n\tDummyInt Datum = DInt(0)\n\t// DummyFloat is a placeholder DFloat value.\n\tDummyFloat Datum = DFloat(0)\n\t// DummyDecimal is a placeholder DDecimal value.\n\tDummyDecimal Datum = \u0026DDecimal{}\n\t// DummyString is a placeholder DString value.\n\tDummyString Datum = DString(\"\")\n\t// DummyBytes is a placeholder DBytes value.\n\tDummyBytes Datum = DBytes(\"\")\n\t// DummyDate is a placeholder DDate value.\n\tDummyDate Datum = DDate(0)\n\t// DummyTimestamp is a placeholder DTimestamp value.\n\tDummyTimestamp Datum = DTimestamp{}\n\t// DummyInterval is a placeholder DInterval value.\n\tDummyInterval Datum = DInterval{}\n\n\t// DNull is the NULL Datum.\n\tDNull Datum = dNull{}\n)\n```\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 DefaultVal struct{}\n```\nDefaultVal represents the DEFAULT expression.\n\n```go\nfunc (t DefaultVal) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node DefaultVal) String() string\n```\n\n```go\nfunc (expr DefaultVal) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr DefaultVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Delete struct {\n\tTable     TableExpr\n\tWhere     *Where\n\tReturning ReturningExprs\n}\n```\nDelete represents a DELETE statement.\n\n```go\nfunc (stmt *Delete) CopyNode() *Delete\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*Delete) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (n *Delete) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Delete) String() string\n```\n\n```go\nfunc (stmt *Delete) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\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 (*DropDatabase) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropDatabase) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *DropDatabase) String() string\n```\n\n```go\ntype DropIndex struct {\n\tNames    QualifiedNames\n\tIfExists bool\n}\n```\nDropIndex represents a DROP INDEX statement.\n\n```go\nfunc (*DropIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *DropIndex) 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 (*DropTable) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropTable) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *DropTable) String() string\n```\n\n```go\ntype EvalContext struct {\n\tNodeID roachpb.NodeID\n\n\tReCache     *RegexpCache\n\tGetLocation func() (*time.Location, error)\n\tArgs        MapArgs\n\n\t// TODO(mjibson): remove prepareOnly in favor of a 2-step prepare-exec solution\n\t// that is also able to save the plan to skip work during the exec step.\n\tPrepareOnly bool\n\t// contains filtered or unexported fields\n}\n```\nEvalContext defines the context in which to evaluate an expression, allowing the retrieval of state such as the node ID or statement start time.\n\n```go\nfunc (ctx *EvalContext) GetStmtTimestamp() DTimestamp\n```\nGetStmtTimestamp retrieves the current statement timestamp as per the evaluation context. The timestamp is guaranteed to be nonzero.\n\n```go\nfunc (ctx *EvalContext) GetTxnTimestamp() roachpb.Timestamp\n```\nGetTxnTimestamp retrieves the current transaction timestamp as per the evaluation context. The timestamp is guaranteed to be nonzero.\n\n```go\nfunc (ctx EvalContext) 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 (ctx EvalContext) ParseTimestamp(s DString) (DTimestamp, error)\n```\nParseTimestamp parses the timestamp.\n\n```go\nfunc (ctx *EvalContext) SetStmtTimestamp(ts roachpb.Timestamp)\n```\nSetStmtTimestamp sets the corresponding timestamp in the EvalContext.\n\n```go\nfunc (ctx *EvalContext) SetTxnTimestamp(ts roachpb.Timestamp)\n```\nSetTxnTimestamp sets the corresponding timestamp in the EvalContext.\n\n```go\ntype ExistsExpr struct {\n\tSubquery Expr\n}\n```\nExistsExpr represents an EXISTS expression.\n\n```go\nfunc (t *ExistsExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *ExistsExpr) String() string\n```\n\n```go\nfunc (expr *ExistsExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *ExistsExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Explain struct {\n\tOptions   []string\n\tStatement Statement\n}\n```\nExplain represents an EXPLAIN statement.\n\n```go\nfunc (stmt *Explain) CopyNode() *Explain\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*Explain) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Explain) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Explain) String() string\n```\n\n```go\nfunc (stmt *Explain) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype Expr interface {\n\tfmt.Stringer\n\t// Walk recursively walks all children using WalkExpr. If any children are changed, it returns a\n\t// copy of this node updated to point to the new children. Otherwise the receiver is returned.\n\t// For childless (leaf) Exprs, its implementation is empty.\n\tWalk(Visitor) Expr\n\t// TypeCheck returns the zero value of the expression's type, or an\n\t// error if the expression doesn't type-check. args maps bind var argument\n\t// names to types.\n\tTypeCheck(args MapArgs) (Datum, error)\n\t// Eval evaluates an SQL expression. Expression evaluation is a mostly\n\t// straightforward walk over the parse tree. The only significant complexity is\n\t// the handling of types and implicit conversions. See binOps and cmpOps for\n\t// more details. Note that expression evaluation returns an error if certain\n\t// node types are encountered: ValArg, QualifiedName or Subquery. These nodes\n\t// should be replaced prior to expression evaluation by an appropriate\n\t// WalkExpr. For example, ValArg should be replace by the argument passed from\n\t// the client.\n\tEval(EvalContext) (Datum, error)\n}\n```\nExpr represents an expression.\n\n```go\nfunc ParseExprTraditional(sql string) (Expr, error)\n```\nParseExprTraditional is a short-hand for parseExpr(sql, Traditional)\n\n```go\nfunc WalkExpr(v Visitor, expr Expr) (newExpr Expr, changed bool)\n```\nWalkExpr traverses the nodes in an expression.\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\tType  funcType\n\tExprs Exprs\n\t// contains filtered or unexported fields\n}\n```\nFuncExpr represents a function call.\n\n```go\nfunc (expr *FuncExpr) CopyNode() *FuncExpr\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (expr *FuncExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *FuncExpr) String() string\n```\n\n```go\nfunc (expr *FuncExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *FuncExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 (*Grant) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Grant) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 IfExpr struct {\n\tCond Expr\n\tTrue Expr\n\tElse Expr\n}\n```\nIfExpr represents an IF expression.\n\n```go\nfunc (expr *IfExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *IfExpr) String() string\n```\n\n```go\nfunc (expr *IfExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IfExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IndexElem struct {\n\tColumn    Name\n\tDirection Direction\n}\n```\nIndexElem represents a column with a direction in a CREATE INDEX statement.\n\n```go\nfunc (node IndexElem) String() string\n```\n\n```go\ntype IndexElemList []IndexElem\n```\nIndexElemList is list of IndexElem.\n\n```go\nfunc NameListToIndexElems(lst NameList) IndexElemList\n```\nNameListToIndexElems converts a NameList to an IndexElemList with all members using the \\`DefaultDirection\\`.\n\n```go\nfunc (l IndexElemList) String() string\n```\nString formats the contained names as a comma-separated, escaped string.\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\tColumns IndexElemList\n\tStoring 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      *Select\n\tReturning ReturningExprs\n}\n```\nInsert represents an INSERT statement.\n\n```go\nfunc (stmt *Insert) CopyNode() *Insert\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (node *Insert) DefaultValues() bool\n```\nDefaultValues returns true iff only default values are being inserted.\n\n```go\nfunc (*Insert) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (n *Insert) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Insert) String() string\n```\n\n```go\nfunc (stmt *Insert) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\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 struct {\n\tVal int64\n\tStr string\n}\n```\nIntVal represents an integer.\n\n```go\nfunc (t *IntVal) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *IntVal) String() string\n```\n\n```go\nfunc (expr IntVal) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IntVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IntervalType struct {\n}\n```\nIntervalType represents an INTERVAL type\n\n```go\nfunc (node *IntervalType) String() string\n```\n\n```go\ntype IsOfTypeExpr struct {\n\tNot   bool\n\tExpr  Expr\n\tTypes []ColumnType\n}\n```\nIsOfTypeExpr represents an IS {,NOT} OF (type\\_list) expression.\n\n```go\nfunc (expr *IsOfTypeExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *IsOfTypeExpr) String() string\n```\n\n```go\nfunc (expr *IsOfTypeExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IsOfTypeExpr) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IsolationLevel int\n```\nIsolationLevel holds the isolation level for a transaction.\n\n```go\nconst (\n\tUnspecifiedIsolation IsolationLevel = iota\n\tSnapshotIsolation\n\tSerializableIsolation\n)\n```\nIsolationLevel values\n\n```go\nfunc (i IsolationLevel) 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 MapArgs map[string]Datum\n```\nMapArgs is an Args implementation which is used for the type inference necessary to support the postgres wire protocol. See various TypeCheck() implementations for details.\n\n```go\nfunc (m MapArgs) Arg(name string) (Datum, bool)\n```\nArg implements the Args interface.\n\n```go\nfunc (m MapArgs) SetInferredType(d, typ Datum) (set Datum, err error)\n```\nSetInferredType sets the bind var argument d to the type typ in m. If m is nil or d is not a DValArg, nil is returned. If the bind var argument is set, typ is returned. An error is returned if typ cannot be set because a different type is already present.\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 (expr *NotExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *NotExpr) String() string\n```\n\n```go\nfunc (expr *NotExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *NotExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype NotNullConstraint struct{}\n```\nNotNullConstraint represents NOT NULL on a column.\n\n```go\ntype NullConstraint struct{}\n```\nNullConstraint represents NULL on a column.\n\n```go\ntype NullIfExpr struct {\n\tExpr1 Expr\n\tExpr2 Expr\n}\n```\nNullIfExpr represents a NULLIF expression.\n\n```go\nfunc (expr *NullIfExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *NullIfExpr) String() string\n```\n\n```go\nfunc (expr *NullIfExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *NullIfExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 (t NumVal) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node NumVal) String() string\n```\n\n```go\nfunc (expr NumVal) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr NumVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\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 (expr *OrExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *OrExpr) String() string\n```\n\n```go\nfunc (expr *OrExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *OrExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 OverlayExpr struct {\n\tFuncExpr\n}\n```\nOverlayExpr represents an overlay function call.\n\n```go\nfunc (node *OverlayExpr) String() string\n```\n\n```go\ntype ParenExpr struct {\n\tExpr\n}\n```\nParenExpr represents a parenthesized expression.\n\n```go\nfunc (node *ParenExpr) String() string\n```\n\n```go\nfunc (expr *ParenExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ParenSelect struct {\n\tSelect *Select\n}\n```\nParenSelect represents a parenthesized SELECT/UNION/VALUES statement.\n\n```go\nfunc (*ParenSelect) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ParenSelect) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *ParenSelect) String() string\n```\n\n```go\nfunc (stmt *ParenSelect) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\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 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) NormalizeExpr(ctx EvalContext, expr Expr) (Expr, error)\n```\nNormalizeExpr is wrapper around ctx.NormalizeExpr which avoids allocation of a normalizeVisitor.\n\n```go\nfunc (p *Parser) Parse(sql string, syntax Syntax) (stmts StatementList, err error)\n```\nParse parses the sql and returns a list of statements.\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) ClearString()\n```\nClearString causes String to return the current (possibly normalized) name instead of the original name (used for testing).\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 (t *QualifiedName) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\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) QualifyWithDatabase(database string) error\n```\nQualifyWithDatabase adds an indirection for the database, if it's missing. It transforms: table       -\u003e database.table table@index -\u003e database.table@index \\*           -\u003e database.\\*\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\nfunc (expr *QualifiedName) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (*QualifiedName) Variable()\n```\nVariable implements the VariableExpr interface.\n\n```go\nfunc (expr *QualifiedName) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\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 (t *RangeCond) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *RangeCond) String() string\n```\n\n```go\nfunc (expr *RangeCond) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *RangeCond) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype RegexpCache struct {\n\t// contains filtered or unexported fields\n}\n```\nA RegexpCache is a cache used to store compiled regular expressions. The cache is safe for concurrent use by multiple goroutines. It is also safe to use the cache through a nil reference, where it will act like a valid cache with no capacity.\n\n```go\nfunc NewRegexpCache(size int) *RegexpCache\n```\nNewRegexpCache creates a new RegexpCache of the given size. The underlying cache internally uses a hash map, so lookups are cheap.\n\n```go\nfunc (rc *RegexpCache) GetRegexp(key regexpCacheKey) (*regexp.Regexp, error)\n```\nGetRegexp consults the cache for the regular expressions stored for the given key, compiling the key's pattern if it is not already in the cache.\n\n```go\nfunc (rc *RegexpCache) Len() int\n```\nLen returns the number of compiled regular expressions in the cache.\n\n```go\ntype ReleaseSavepoint struct {\n\tSavepoint string\n}\n```\nReleaseSavepoint represents a RELEASE SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (*ReleaseSavepoint) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ReleaseSavepoint) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *ReleaseSavepoint) 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 (*RenameColumn) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RenameColumn) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*RenameDatabase) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RenameDatabase) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*RenameIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RenameIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*RenameTable) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RenameTable) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *RenameTable) String() string\n```\n\n```go\ntype ReturningExprs SelectExprs\n```\nReturningExprs represents RETURNING expressions.\n\n```go\nfunc (r ReturningExprs) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (r ReturningExprs) 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 (*Revoke) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Revoke) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Revoke) String() string\n```\n\n```go\ntype RollbackToSavepoint struct {\n\tSavepoint string\n}\n```\nRollbackToSavepoint represents a ROLLBACK TO SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (*RollbackToSavepoint) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RollbackToSavepoint) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *RollbackToSavepoint) String() string\n```\n\n```go\ntype RollbackTransaction struct{}\n```\nRollbackTransaction represents a ROLLBACK statement.\n\n```go\nfunc (*RollbackTransaction) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RollbackTransaction) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *RollbackTransaction) String() string\n```\n\n```go\ntype Row struct {\n\tExprs Exprs\n}\n```\nRow represents a parenthesized list of expressions. Similar to Tuple except in how it is textually represented.\n\n```go\nfunc (t *Row) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *Row) String() string\n```\n\n```go\nfunc (expr *Row) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *Row) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Savepoint struct {\n\tName string\n}\n```\nSavepoint represents a SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (*Savepoint) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Savepoint) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Savepoint) String() string\n```\n\n```go\ntype Select struct {\n\tSelect  SelectStatement\n\tOrderBy OrderBy\n\tLimit   *Limit\n}\n```\nSelect represents a SelectStatement with an ORDER and/or LIMIT.\n\n```go\nfunc (stmt *Select) CopyNode() *Select\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*Select) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Select) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Select) String() string\n```\n\n```go\nfunc (stmt *Select) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype SelectClause struct {\n\tDistinct bool\n\tExprs    SelectExprs\n\tFrom     TableExprs\n\tWhere    *Where\n\tGroupBy  GroupBy\n\tHaving   *Where\n\tLock     string\n\t// contains filtered or unexported fields\n}\n```\nSelectClause represents a SELECT statement.\n\n```go\nfunc (stmt *SelectClause) CopyNode() *SelectClause\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*SelectClause) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SelectClause) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *SelectClause) String() string\n```\n\n```go\nfunc (stmt *SelectClause) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype SelectExpr struct {\n\tExpr Expr\n\tAs   Name\n}\n```\nSelectExpr represents 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 (stmt *Set) CopyNode() *Set\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*Set) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Set) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Set) String() string\n```\n\n```go\nfunc (stmt *Set) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype SetDefaultIsolation struct {\n\tIsolation IsolationLevel\n}\n```\nSetDefaultIsolation represents a SET SESSION CHARACTERISTICS AS TRANSACTION statement.\n\n```go\nfunc (*SetDefaultIsolation) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetDefaultIsolation) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *SetDefaultIsolation) String() string\n```\n\n```go\ntype SetTimeZone struct {\n\tValue Expr\n}\n```\nSetTimeZone represents a SET TIME ZONE statement.\n\n```go\nfunc (*SetTimeZone) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetTimeZone) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *SetTimeZone) String() string\n```\n\n```go\ntype SetTransaction struct {\n\tIsolation    IsolationLevel\n\tUserPriority UserPriority\n}\n```\nSetTransaction represents a SET TRANSACTION statement.\n\n```go\nfunc (*SetTransaction) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetTransaction) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *SetTransaction) String() string\n```\n\n```go\ntype Show struct {\n\tName string\n}\n```\nShow represents a SHOW statement.\n\n```go\nfunc (*Show) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Show) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*ShowColumns) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowColumns) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*ShowDatabases) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowDatabases) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*ShowGrants) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowGrants) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*ShowIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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 (*ShowTables) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTables) StatementType() StatementType\n```\nStatementType implements the Statement interface.\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\tStatementType() StatementType\n\t// StatementTag is a short string identifying the type of statement\n\t// (usually a single verb). This is different than the Stringer output,\n\t// which is the actual statement (including args).\n\t// TODO(dt): Currently tags are always pg-compatible in the future it\n\t// might make sense to pass a tag format specifier.\n\tStatementTag() string\n}\n```\nStatement represents a statement.\n\n```go\nfunc FillArgs(stmt Statement, args Args) (Statement, error)\n```\nFillArgs replaces any placeholder nodes in the expression with arguments supplied with the query.\n\n```go\nfunc ParseOne(sql string, syntax Syntax) (Statement, error)\n```\nParseOne parses a sql statement.\n\n```go\nfunc ParseOneTraditional(sql string) (Statement, error)\n```\nParseOneTraditional is short-hand for ParseOne(sql, Traditional)\n\n```go\nfunc WalkStmt(v Visitor, stmt Statement) (newStmt Statement, changed bool)\n```\nWalkStmt walks the entire parsed stmt calling WalkExpr on each expression, and replacing each expression with the one returned by WalkExpr.\n\n```go\ntype StatementList []Statement\n```\nStatementList is a list of statements.\n\n```go\nfunc (l StatementList) String() string\n```\n\n```go\ntype StatementType int\n```\nStatementType is the enumerated type for Statement return styles on the wire.\n\n```go\nconst (\n\t// Ack indicates that the statement does not have a meaningful\n\t// return. Examples include SET, BEGIN, COMMIT.\n\tAck StatementType = iota\n\t// DDL indicates that the statement mutates the database schema.\n\tDDL\n\t// RowsAffected indicates that the statement returns the count of\n\t// affected rows.\n\tRowsAffected\n\t// Rows indicates that the statement returns the affected rows after\n\t// the statement was applied.\n\tRows\n)\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 (t *Subquery) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *Subquery) String() string\n```\n\n```go\nfunc (expr *Subquery) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *Subquery) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Syntax int\n```\nSyntax is an enum of the various syntax types.\n\n```go\nconst (\n\t// Implicit default, must stay in the zero-value position.\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 (*Truncate) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Truncate) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Truncate) String() string\n```\n\n```go\ntype Tuple struct {\n\tExprs Exprs\n}\n```\nTuple represents a parenthesized list of expressions.\n\n```go\nfunc (t *Tuple) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *Tuple) String() string\n```\n\n```go\nfunc (expr *Tuple) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *Tuple) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 (expr *UnaryExpr) Eval(ctx EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node *UnaryExpr) String() string\n```\n\n```go\nfunc (expr *UnaryExpr) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *UnaryExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\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 UnionClause struct {\n\tType        UnionType\n\tLeft, Right *Select\n\tAll         bool\n}\n```\nUnionClause represents a UNION statement.\n\n```go\nfunc (*UnionClause) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*UnionClause) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *UnionClause) String() string\n```\n\n```go\ntype UnionType int\n```\nUnionType represents one of the three set operations in sql.\n\n```go\nconst (\n\tUnionOp UnionType = iota\n\tIntersectOp\n\tExceptOp\n)\n```\nUnion.Type\n\n```go\nfunc (i UnionType) String() string\n```\n\n```go\ntype UniqueConstraint struct{}\n```\nUniqueConstraint represents UNIQUE on a column.\n\n```go\ntype UniqueConstraintTableDef struct {\n\tIndexTableDef\n\tPrimaryKey bool\n}\n```\nUniqueConstraintTableDef represents a unique constraint within a CREATE TABLE statement.\n\n```go\nfunc (node *UniqueConstraintTableDef) String() string\n```\n\n```go\ntype Update struct {\n\tTable     TableExpr\n\tExprs     UpdateExprs\n\tWhere     *Where\n\tReturning ReturningExprs\n}\n```\nUpdate represents an UPDATE statement.\n\n```go\nfunc (stmt *Update) CopyNode() *Update\n```\nCopyNode makes a copy of this Expr without recursing in any child Exprs.\n\n```go\nfunc (*Update) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (n *Update) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Update) String() string\n```\n\n```go\nfunc (stmt *Update) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype UpdateExpr struct {\n\tTuple bool\n\tNames QualifiedNames\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 UserPriority int\n```\nUserPriority holds the user priority for a transaction.\n\n```go\nconst (\n\tUnspecifiedUserPriority UserPriority = iota\n\tLow\n\tNormal\n\tHigh\n)\n```\nUserPriority values\n\n```go\nfunc (up UserPriority) 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 struct {\n\t// contains filtered or unexported fields\n}\n```\nValArg represents a named bind var argument.\n\n```go\nfunc (t ValArg) Eval(_ EvalContext) (Datum, error)\n```\nEval implements the Expr interface.\n\n```go\nfunc (node ValArg) String() string\n```\n\n```go\nfunc (expr ValArg) TypeCheck(args MapArgs) (Datum, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (ValArg) Variable()\n```\nVariable implements the VariableExpr interface.\n\n```go\nfunc (expr ValArg) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ValuesClause struct {\n\tTuples []*Tuple\n}\n```\nValuesClause represents a VALUES clause.\n\n```go\nfunc (ValuesClause) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (ValuesClause) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *ValuesClause) String() string\n```\n\n```go\nfunc (stmt *ValuesClause) WalkStmt(v Visitor) Statement\n```\nWalkStmt is part of the WalkableStmt interface.\n\n```go\ntype VariableExpr interface {\n\tExpr\n\tVariable()\n}\n```\nVariableExpr is an Expr that may change per row. It is used to signal the evaluation/simplification machinery that the underlying Expr is not constant.\n\n```go\ntype Visitor interface {\n\t// VisitPre is called for each node before recursing into that subtree. Upon return, if recurse\n\t// is false, the visit will not recurse into the subtree (and VisitPost will not be called for\n\t// this node).\n\t//\n\t// The returned Expr replaces the visited expression and can be used for rewriting expressions.\n\t// The function should NOT modify nodes in-place; it should make copies of nodes. The Walk\n\t// infrastructure will automatically make copies of parents as needed.\n\tVisitPre(expr Expr) (recurse bool, newExpr Expr)\n\n\t// VisitPost is called for each node after recursing into the subtree. The returned Expr\n\t// replaces the visited expression and can be used for rewriting expressions.\n\t//\n\t// The returned Expr replaces the visited expression and can be used for rewriting expressions.\n\t// The function should NOT modify nodes in-place; it should make and return copies of nodes. The\n\t// Walk infrastructure will automatically make copies of parents as needed.\n\tVisitPost(expr Expr) (newNode Expr)\n}\n```\nVisitor defines methods that are called for nodes during an expression or statement walk.\n\n```go\ntype WalkableStmt interface {\n\tStatement\n\tWalkStmt(Visitor) Statement\n}\n```\nWalkableStmt is implemented by statements that can appear inside an expression (selects) or we want to start a walk from (using WalkStmt).\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/phobos182/cockroach/sql/parser","name":"parser","synopsis":"","isRedistributable":true}
