{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tree\n\nCode generated by eval\\_gen.go. DO NOT EDIT. Regenerate this file with either of the following commands:\n\n\t./dev generate go\n\tgo generate ./pkg/sql/sem/tree\n\nIf you use the dev command and you have added a new tree expression, like tree.XYZ in a new file, you may get the confusing error: undefined: XYZ. Run './dev generate bazel' to fix this.\n\nCode generated by eval\\_gen.go. DO NOT EDIT. Regenerate this file with either of the following commands:\n\n\t./dev generate go\n\tgo generate ./pkg/sql/sem/tree\n\nIf you use the dev command and you have added a new tree expression, like tree.XYZ in a new file, you may get the confusing error: undefined: XYZ. Run './dev generate bazel' to fix this.\n\n## Constants\n\n```go\nconst (\n\tSeqOptAs        = \"AS\"\n\tSeqOptCycle     = \"CYCLE\"\n\tSeqOptNoCycle   = \"NO CYCLE\"\n\tSeqOptOwnedBy   = \"OWNED BY\"\n\tSeqOptCache     = \"CACHE\"\n\tSeqOptCacheNode = \"PER NODE CACHE\"\n\tSeqOptIncrement = \"INCREMENT\"\n\tSeqOptMinValue  = \"MINVALUE\"\n\tSeqOptMaxValue  = \"MAXVALUE\"\n\tSeqOptStart     = \"START\"\n\tSeqOptRestart   = \"RESTART\"\n\tSeqOptVirtual   = \"VIRTUAL\"\n)\n```\nNames of options on CREATE SEQUENCE.\n\n```go\nconst (\n\t// UnknownOidName represents the 0 oid value as '-' for types other than T_oid\n\t// in the oid family, which matches the Postgres representation.\n\tUnknownOidName = \"-\"\n\n\t// UnknownOidValue is the 0 (unknown) oid value.\n\tUnknownOidValue = oid.Oid(0)\n)\n```\n\n```go\nconst (\n\tDistinctFuncType funcType\n\tAllFuncType\n)\n```\nFuncExpr.Type\n\n```go\nconst (\n\tCastExplicit castSyntaxMode = iota\n\tCastShort\n\tCastPrepend\n)\n```\nThese constants separate the syntax X::Y from CAST(X AS Y).\n\n```go\nconst (\n\tAnnotateExplicit annotateSyntaxMode = iota\n\tAnnotateShort\n)\n```\nThese constants separate the syntax X:::Y from ANNOTATE\\_TYPE(X, Y)\n\n```go\nconst (\n\t// FmtSimple instructs the pretty-printer to produce\n\t// a straightforward representation.\n\tFmtSimple FmtFlags = 0\n\n\t// FmtBareStrings instructs the pretty-printer to print strings and\n\t// other values without wrapping quotes. If the value is a SQL\n\t// string, the quotes will only be omitted if the string contains no\n\t// special characters. If it does contain special characters, the\n\t// string will be escaped and enclosed in e'...' regardless of\n\t// whether FmtBareStrings is specified. See FmtRawStrings below for\n\t// an alternative.\n\tFmtBareStrings = FmtFlags(lexbase.EncBareStrings)\n\n\t// FmtBareIdentifiers instructs the pretty-printer to print\n\t// identifiers without wrapping quotes in any case.\n\tFmtBareIdentifiers = FmtFlags(lexbase.EncBareIdentifiers)\n\n\t// FmtBareReservedKeywords instructs the pretty-printer to print\n\t// reserved keywords without wrapping quotes.\n\tFmtBareReservedKeywords = FmtFlags(lexbase.EncBareReservedKeywords)\n\n\t// FmtShowPasswords instructs the pretty-printer to not suppress passwords.\n\t// If not set, passwords are replaced by *****.\n\tFmtShowPasswords = FmtFlags(lexbase.EncFirstFreeFlagBit) \u003c\u003c iota\n\n\t// FmtShowTypes instructs the pretty-printer to\n\t// annotate expressions with their resolved types.\n\tFmtShowTypes\n\n\t// FmtHideConstants instructs the pretty-printer to produce a\n\t// representation that does not disclose query-specific data. It\n\t// also shortens long lists in tuples, VALUES and array expressions.\n\tFmtHideConstants\n\n\t// FmtAnonymize instructs the pretty-printer to remove any name.\n\tFmtAnonymize\n\n\t// FmtAlwaysQualifyTableNames instructs the pretty-printer to\n\t// qualify table names, even if originally omitted.\n\t// Requires Annotations in the formatting context.\n\tFmtAlwaysQualifyTableNames\n\n\t// FmtAlwaysGroupExprs instructs the pretty-printer to enclose\n\t// sub-expressions between parentheses.\n\t// Used for testing.\n\tFmtAlwaysGroupExprs\n\n\t// FmtShowTableAliases reveals the table aliases.\n\tFmtShowTableAliases\n\n\t// FmtSymbolicSubqueries indicates that subqueries must be pretty-printed\n\t// using numeric notation (@S123).\n\tFmtSymbolicSubqueries\n\n\t// FmtParsableNumerics produces decimal and float representations\n\t// that are always parsable, even if they require a string\n\t// representation like -Inf. Negative values are preserved \"inside\"\n\t// the numeric by enclosing them within parentheses.\n\tFmtParsableNumerics\n\n\t// FmtMarkRedactionNode instructs the pretty printer to redact datums,\n\t// constants, and simple names (i.e. Name, UnrestrictedName) from statements.\n\tFmtMarkRedactionNode\n\n\t// FmtSummary instructs the pretty printer to produced a summarized version\n\t// of the query, to pass to the frontend.\n\t//\n\t// Here are the following formats we support:\n\t// SELECT: SELECT {columns} FROM {tables}\n\t// - Show columns up to 15 characters.\n\t// - Show tables up to 30 characters.\n\t// - Hide column names in nested select queries.\n\t// INSERT/UPSERT: INSERT/UPSERT INTO {table} {columns}\n\t// - Show table up to 30 characters.\n\t// - Show columns up to 15 characters.\n\t// INSERT SELECT: INSERT INTO {table} SELECT {columns} FROM {table}\n\t// - Show table up to 30 characters.\n\t// - Show columns up to 15 characters.\n\t// UPDATE: UPDATE {table} SET {columns} WHERE {condition}\n\t// - Show table up to 30 characters.\n\t// - Show columns up to 15 characters.\n\t// - Show condition up to 15 characters.\n\tFmtSummary\n\n\t// FmtOmitNameRedaction instructs the pretty printer to omit redaction\n\t// for simple names (i.e. Name, UnrestrictedName) from statements.\n\t// This flag *overrides* `FmtMarkRedactionNode` above.\n\tFmtOmitNameRedaction\n\n\t// FmtShortenConstants shortens long lists in tuples, VALUES and array\n\t// expressions. FmtHideConstants takes precedence over it.\n\tFmtShortenConstants\n\n\t// FmtCollapseLists instructs the pretty-printer to shorten lists\n\t// containing only literals, placeholders and/or similar subexpressions\n\t// of literals/placeholders to their first element (scrubbed) followed\n\t// by \"__more__\". E.g.\n\t//  SELECT * FROM foo where v IN (1, 2+2, $1, $2*3) =\u003e SELECT * FROM foo where v IN (_, __more__)\n\tFmtCollapseLists\n\n\t// FmtConstantsAsUnderscores instructs the pretty-printer to format\n\t// constants (literals, placeholders) as underscores.\n\t// e.g.\n\t//   SELECT 1, 'a', $1 =\u003e SELECT _, _, _\n\tFmtConstantsAsUnderscores\n\n\t// FmtAlwaysQualifyUserDefinedTypeNames instructs the pretty-printer to include\n\t// the name of user-defined types as a three-part name.\n\tFmtAlwaysQualifyUserDefinedTypeNames\n\n\t// FmtShowFullURIs instructs the pretty-printer to not sanitize URIs. If not\n\t// set, URIs are sanitized to prevent leaking secrets.\n\tFmtShowFullURIs\n\n\t// FmtSkipAsOfSystemTimeClauses prevents the formatter from printing AS OF\n\t// SYSTEM TIME clauses.\n\tFmtSkipAsOfSystemTimeClauses\n)\n```\nBasic bit definitions for the FmtFlags bitmask.\n\n```go\nconst (\n\t// FmtPgwireText instructs the pretty-printer to use\n\t// a pg-compatible conversion to strings. See comments\n\t// in pgwire_encode.go.\n\tFmtPgwireText = fmtPgwireFormat | FmtFlags(lexbase.EncBareStrings)\n\n\t// FmtPGCatalog is used to produce expressions formatted in a way that's as\n\t// close as possible to what clients expect to live in pg_catalog (e.g.\n\t// pg_attrdef.adbin, pg_constraint.condef and pg_indexes.indexdef columns).\n\t// Specifically, this strips type annotations (Postgres doesn't know what\n\t// those are), adds cast expressions for non-numeric constants, formats\n\t// arrays as strings with curly brackets (like FmtPGWireText), formats bytes\n\t// with double quotes (also like FmtPGWireText), and formats indexes in\n\t// Postgres-specific syntax.\n\tFmtPGCatalog = fmtPGCatalog | fmtPGCatalogCasts\n\n\t// FmtParsable instructs the pretty-printer to produce a representation that\n\t// can be parsed into an equivalent expression. If there is a chance that the\n\t// formatted data will be stored durably on disk or sent to other nodes,\n\t// then this formatting directive is not appropriate, and FmtSerializable\n\t// should be used instead.\n\tFmtParsable = fmtDisambiguateDatumTypes | FmtParsableNumerics\n\n\t// FmtSerializable instructs the pretty-printer to produce a representation\n\t// for expressions that can be serialized to disk. It serializes user defined\n\t// types using representations that are stable across changes of the type\n\t// itself. This should be used when serializing expressions that will be\n\t// stored on disk, like DEFAULT expressions of columns.\n\tFmtSerializable = FmtParsable | fmtStaticallyFormatUserDefinedTypes\n\n\t// FmtCheckEquivalence instructs the pretty-printer to produce a representation\n\t// that can be used to check equivalence of expressions. Specifically:\n\t//  - IndexedVars are formatted using symbolic notation (to disambiguate\n\t//    columns).\n\t//  - datum types are disambiguated with explicit type\n\t//    annotations. This is necessary because datums of different types\n\t//    can otherwise be formatted to the same string: (for example the\n\t//    DDecimal 1 and the DInt 1).\n\t//  - user defined types and datums of user defined types are formatted\n\t//    using static representations to avoid name resolution and invalidation\n\t//    due to changes in the underlying type.\n\tFmtCheckEquivalence = fmtDisambiguateDatumTypes |\n\t\tFmtParsableNumerics |\n\t\tfmtStaticallyFormatUserDefinedTypes\n\n\t// FmtArrayToString is a special composite flag suitable\n\t// for the output of array_to_string(). This de-quotes\n\t// the strings enclosed in the array and skips the normal escaping\n\t// of strings. Special characters are hex-escaped.\n\tFmtArrayToString = FmtBareStrings | fmtRawStrings\n\n\t// FmtExport, if set, formats datums in a raw form suitable for\n\t// EXPORT, e.g. suitable for output into a CSV file. The intended\n\t// goal for this flag is to ensure values can be read back using the\n\t// ParseDatumStringAs() / ParseStringas() functions (IMPORT).\n\t//\n\t// We do not use FmtParsable for this purpose because FmtParsable\n\t// intends to preserve all the information useful to CockroachDB\n\t// internally, at the expense of readability by 3rd party tools.\n\t//\n\t// We also separate this set of flag from fmtArrayToString\n\t// because the behavior of array_to_string() is fixed for compatibility\n\t// with PostgreSQL, whereas EXPORT may evolve over time to support\n\t// other things (eg. fixing #33429).\n\tFmtExport = FmtBareStrings | fmtRawStrings\n\n\t// FmtAlwaysQualifyNames will fully qualify various types of names.\n\tFmtAlwaysQualifyNames = FmtAlwaysQualifyTableNames | FmtAlwaysQualifyUserDefinedTypeNames\n)\n```\nComposite/derived flag definitions follow.\n\n```go\nconst (\n\tOverloadPreferenceUnpreferred = OverloadPreference(-1)\n\tOverloadPreferenceNone        = OverloadPreference(0)\n\tOverloadPreferencePreferred   = OverloadPreference(1)\n)\n```\n\n```go\nconst (\n\tPGTimeFormat              = \"15:04:05.999999\"\n\tPGDateFormat              = \"2006-01-02\"\n\tPGTimeStampFormatNoOffset = PGDateFormat + \" \" + PGTimeFormat\n\tPGTimeStampFormat         = PGTimeStampFormatNoOffset + \"-07\"\n\tPGTime2400Format          = \"24:00:00\"\n\tPGTimeTZFormat            = PGTimeFormat + \"-07\"\n)\n```\nThis block contains all available PG time formats.\n\n```go\nconst (\n\t// PrettyNoAlign disables alignment.\n\tPrettyNoAlign PrettyAlignMode = 0\n\t// PrettyAlignOnly aligns sub-clauses only and preserves the\n\t// hierarchy of logical operators.\n\tPrettyAlignOnly = 1\n\t// PrettyAlignAndDeindent does the work of PrettyAlignOnly and also\n\t// de-indents AND and OR operators.\n\tPrettyAlignAndDeindent = 2\n\t// PrettyAlignAndExtraIndent does the work of PrettyAlignOnly and\n\t// also extra indents the operands of AND and OR operators so\n\t// that they appear aligned but also indented.\n\tPrettyAlignAndExtraIndent = 3\n)\n```\n\n```go\nconst (\n\t// DefaultLineWidth is the line width used with the default pretty-printing configuration.\n\tDefaultLineWidth = 60\n\t// ConsoleLineWidth is the line width used on the frontend console.\n\tConsoleLineWidth = 108\n)\n```\n\n```go\nconst (\n\t// RegionEnum is the name of the per-database region enum required for\n\t// multi-region.\n\tRegionEnum string = \"crdb_internal_region\"\n\t// RegionalByRowRegionDefaultCol is the default name of the REGIONAL BY ROW\n\t// column name if the AS field is not populated.\n\tRegionalByRowRegionDefaultCol string = \"crdb_region\"\n\t// RegionalByRowRegionDefaultColName is the same, typed as Name.\n\tRegionalByRowRegionDefaultColName Name = Name(RegionalByRowRegionDefaultCol)\n\t// RegionalByRowRegionNotSpecifiedName is the string denoting the REGIONAL BY ROW\n\t// has no AS \u003ccol\u003e specified.\n\t// TODO(#59455): clean this up to use something nicer.\n\tRegionalByRowRegionNotSpecifiedName = \"\"\n\t// PrimaryRegionNotSpecifiedName is the string denoting the lack of primary region in the\n\t// locality config.\n\t// TODO(#59455): clean this up to use something nicer.\n\tPrimaryRegionNotSpecifiedName Name = \"\"\n\t// SecondaryRegionNotSpecifiedName is the string denoting the lack of secondary region\n\t//in the locality config.\n\t// TODO(#59455): clean this up to use something nicer.\n\tSecondaryRegionNotSpecifiedName Name = \"\"\n)\n```\n\n```go\nconst (\n\t// ScrubTable describes the SCRUB operation SCRUB TABLE.\n\tScrubTable = iota\n\t// ScrubDatabase describes the SCRUB operation SCRUB DATABASE.\n\tScrubDatabase = iota\n)\n```\n\n```go\nconst (\n\tAstFull  = \"FULL\"\n\tAstLeft  = \"LEFT\"\n\tAstRight = \"RIGHT\"\n\tAstCross = \"CROSS\"\n\tAstInner = \"INNER\"\n)\n```\nJoinTableExpr.Join\n\n```go\nconst (\n\tAstHash     = \"HASH\"\n\tAstLookup   = \"LOOKUP\"\n\tAstMerge    = \"MERGE\"\n\tAstInverted = \"INVERTED\"\n\tAstStraight = \"STRAIGHT\"\n)\n```\nJoinTableExpr.Hint\n\n```go\nconst (\n\tAstWhere  = \"WHERE\"\n\tAstHaving = \"HAVING\"\n)\n```\nWhere.Type\n\n```go\nconst (\n\tAlterTableTag          = \"ALTER TABLE\"\n\tAlterPolicyTag         = \"ALTER POLICY\"\n\tBackupTag              = \"BACKUP\"\n\tCreateIndexTag         = \"CREATE INDEX\"\n\tCreateFunctionTag      = \"CREATE FUNCTION\"\n\tCreateProcedureTag     = \"CREATE PROCEDURE\"\n\tCreateTriggerTag       = \"CREATE TRIGGER\"\n\tCreateSchemaTag        = \"CREATE SCHEMA\"\n\tCreateSequenceTag      = \"CREATE SEQUENCE\"\n\tCreateDatabaseTag      = \"CREATE DATABASE\"\n\tCreatePolicyTag        = \"CREATE POLICY\"\n\tCommentOnColumnTag     = \"COMMENT ON COLUMN\"\n\tCommentOnConstraintTag = \"COMMENT ON CONSTRAINT\"\n\tCommentOnDatabaseTag   = \"COMMENT ON DATABASE\"\n\tCommentOnIndexTag      = \"COMMENT ON INDEX\"\n\tCommentOnSchemaTag     = \"COMMENT ON SCHEMA\"\n\tCommentOnTableTag      = \"COMMENT ON TABLE\"\n\tCommentOnTypeTag       = \"COMMENT ON TYPE\"\n\tDropDatabaseTag        = \"DROP DATABASE\"\n\tDropFunctionTag        = \"DROP FUNCTION\"\n\tDropPolicyTag          = \"DROP POLICY\"\n\tDropProcedureTag       = \"DROP PROCEDURE\"\n\tDropTriggerTag         = \"DROP TRIGGER\"\n\tDropIndexTag           = \"DROP INDEX\"\n\tDropOwnedByTag         = \"DROP OWNED BY\"\n\tDropSchemaTag          = \"DROP SCHEMA\"\n\tDropSequenceTag        = \"DROP SEQUENCE\"\n\tDropTableTag           = \"DROP TABLE\"\n\tDropTypeTag            = \"DROP TYPE\"\n\tDropViewTag            = \"DROP VIEW\"\n\tImportTag              = \"IMPORT\"\n\tRestoreTag             = \"RESTORE\"\n\tConfigureZoneTag       = \"CONFIGURE ZONE\"\n)\n```\n\n```go\nconst ColumnLimit = 15\n```\nColumnLimit is the max character limit for columns in summarized queries\n\n```go\nconst LikeTableOptAll = ^likeTableOptInvalid\n```\nLikeTableOptAll is the full LikeTableOpt bitmap.\n\n```go\nconst MaxPlaceholderIdx = math.MaxUint16\n```\nMaxPlaceholderIdx is the maximum allowed value of a PlaceholderIdx. The pgwire protocol is limited to 2^16 placeholders, so we limit the IDs to this range as well.\n\n```go\nconst NoColumnIdx = -1\n```\nNoColumnIdx is a special value that can be used as a \"column index\" to indicate that the column is not present.\n\n```go\nconst PasswordSubstitution = \"'*****'\"\n```\nPasswordSubstitution is the string that replaces passwords unless FmtShowPasswords is specified.\n\n```go\nconst StmtFingerprintPlaceholder = '_'\n```\nStmtFingerprintPlaceholder is the char that replaces all literals and placeholders in a query when computing its fingerprint.\n\n```go\nconst TableLimit = 30\n```\nTableLimit is the max character limit for tables in summarized queries\n\n## Variables\n\n```go\nvar (\n\n\t// NumValAvailInteger is the set of available integer types.\n\tNumValAvailInteger = append(intLikeTypes, decimalLikeTypes...)\n\t// NumValAvailIntegerNoOid is the set of available integer types except for OID.\n\tNumValAvailIntegerNoOid = append([]*types.T{types.Int}, decimalLikeTypes...)\n\t// NumValAvailDecimalNoFraction is the set of available integral numeric types.\n\tNumValAvailDecimalNoFraction = append(decimalLikeTypes, intLikeTypes...)\n\t// NumValAvailDecimalNoFractionNoOid is the set of available integral numeric types except for OID.\n\tNumValAvailDecimalNoFractionNoOid = append(decimalLikeTypes, types.Int)\n\t// NumValAvailDecimalWithFraction is the set of available fractional numeric types.\n\tNumValAvailDecimalWithFraction = decimalLikeTypes\n)\n```\n\n```go\nvar (\n\t// StrValAvailAllParsable is the set of parsable string types.\n\tStrValAvailAllParsable = []*types.T{\n\n\t\ttypes.String,\n\t\ttypes.BPChar,\n\t\ttypes.AnyCollatedString,\n\t\ttypes.Bytes,\n\t\ttypes.Bool,\n\t\ttypes.Int,\n\t\ttypes.Float,\n\t\ttypes.Decimal,\n\t\ttypes.Date,\n\t\ttypes.StringArray,\n\t\ttypes.BytesArray,\n\t\ttypes.IntArray,\n\t\ttypes.FloatArray,\n\t\ttypes.DecimalArray,\n\t\ttypes.BoolArray,\n\t\ttypes.Box2D,\n\t\ttypes.Geography,\n\t\ttypes.Geometry,\n\t\ttypes.Time,\n\t\ttypes.TimeTZ,\n\t\ttypes.Timestamp,\n\t\ttypes.TimestampTZ,\n\t\ttypes.Interval,\n\t\ttypes.Uuid,\n\t\ttypes.DateArray,\n\t\ttypes.TimeArray,\n\t\ttypes.TimeTZArray,\n\t\ttypes.TimestampArray,\n\t\ttypes.TimestampTZArray,\n\t\ttypes.IntervalArray,\n\t\ttypes.UUIDArray,\n\t\ttypes.INet,\n\t\ttypes.Jsonb,\n\t\ttypes.Jsonpath,\n\t\ttypes.PGLSN,\n\t\ttypes.PGLSNArray,\n\t\ttypes.PGVector,\n\t\ttypes.PGVectorArray,\n\t\ttypes.RefCursor,\n\t\ttypes.RefCursorArray,\n\t\ttypes.TSQuery,\n\t\ttypes.TSVector,\n\t\ttypes.VarBit,\n\t\ttypes.AnyEnum,\n\t\ttypes.AnyEnumArray,\n\t\ttypes.INetArray,\n\t\ttypes.VarBitArray,\n\t\ttypes.AnyTuple,\n\t\ttypes.AnyTupleArray,\n\t}\n\t// StrValAvailBytes is the set of types convertible to byte array.\n\tStrValAvailBytes = []*types.T{types.Bytes, types.Uuid, types.String, types.AnyEnum}\n)\n```\n\n```go\nvar (\n\n\t// DBoolTrue is a pointer to the DBool(true) value and can be used in\n\t// comparisons against Datum types.\n\tDBoolTrue = \u0026constDBoolTrue\n\t// DBoolFalse is a pointer to the DBool(false) value and can be used in\n\t// comparisons against Datum types.\n\tDBoolFalse = \u0026constDBoolFalse\n\n\t// DNull is the NULL Datum.\n\tDNull Datum = dNull{}\n\n\t// DZero is the zero-valued integer Datum.\n\tDZero = NewDInt(0)\n\n\t// DTimeMaxTimeRegex is a compiled regex for parsing the 24:00 time value.\n\tDTimeMaxTimeRegex = regexp.MustCompile(`^([0-9-]*(\\s|T))?\\s*24:00(:00(.0+)?)?\\s*$`)\n\n\t// MaxSupportedTime is the maximum time we support parsing.\n\t//\n\t// Refer to the doc comments of the function \"timeutil.Unix\" for the process of\n\t// deriving the arguments to construct a specific time.Time.\n\tMaxSupportedTime    = timeutil.Unix(9224318016000-1, 999999000) // 294276-12-31 23:59:59.999999\n\tMaxSupportedTimeSec = float64(MaxSupportedTime.Unix())\n\t// MinSupportedTime is the minimum time we support parsing.\n\t//\n\t// Refer to the doc comments of the function \"timeutil.Unix\" for the process of\n\t// deriving the arguments to construct a specific time.Time.\n\tMinSupportedTime    = timeutil.Unix(-210866803200, 0) // 4714-11-24 00:00:00+00 BC\n\tMinSupportedTimeSec = float64(MinSupportedTime.Unix())\n\n\t// ValidateJSONPath is injected from pkg/util/jsonpath/parser/parse.go.\n\tValidateJSONPath func(string) (*jsonpath.Jsonpath, error)\n\n\t// EmptyDJSON is an empty JSON object.\n\tEmptyDJSON = *NewDJSON(json.EmptyJSONValue)\n)\n```\n\n```go\nvar (\n\t// DZeroFloat is the DFloat for zero.\n\tDZeroFloat = NewDFloat(0)\n\t// DPosInfFloat is the DFloat for positive infinity.\n\tDPosInfFloat = NewDFloat(DFloat(math.Inf(+1)))\n\t// DNegInfFloat is the DFloat for negative infinity.\n\tDNegInfFloat = NewDFloat(DFloat(math.Inf(-1)))\n\t// DNaNFloat is the DFloat for NaN.\n\tDNaNFloat = NewDFloat(DFloat(math.NaN()))\n)\n```\n\n```go\nvar (\n\t// DZeroDecimal is the decimal constant '0'.\n\tDZeroDecimal = \u0026DDecimal{Decimal: apd.Decimal{}}\n\n\t// DNaNDecimal is the decimal constant 'NaN'.\n\tDNaNDecimal = \u0026DDecimal{Decimal: apd.Decimal{Form: apd.NaN}}\n\n\t// DPosInfDecimal is the decimal constant 'inf'.\n\tDPosInfDecimal = \u0026DDecimal{Decimal: apd.Decimal{Form: apd.Infinite, Negative: false}}\n\n\t// DNegInfDecimal is the decimal constant '-inf'.\n\tDNegInfDecimal = \u0026DDecimal{Decimal: apd.Decimal{Form: apd.Infinite, Negative: true}}\n)\n```\n\n```go\nvar (\n\n\t// DMinTimeTZ is the min TimeTZ.\n\tDMinTimeTZ = NewDTimeTZFromOffset(timeofday.Min, timetz.MinTimeTZOffsetSecs)\n\t// DMaxTimeTZ is the max TimeTZ.\n\tDMaxTimeTZ = NewDTimeTZFromOffset(timeofday.Max, timetz.MaxTimeTZOffsetSecs)\n)\n```\n\n```go\nvar (\n\t// DecimalCtx is the default context for decimal operations. Any change\n\t// in the exponent limits must still guarantee a safe conversion to the\n\t// postgres binary decimal format in the wire protocol, which uses an\n\t// int16. See pgwire/types.go.\n\tDecimalCtx = \u0026apd.Context{\n\t\tPrecision:   20,\n\t\tRounding:    apd.RoundHalfUp,\n\t\tMaxExponent: 2000,\n\t\tMinExponent: -2000,\n\n\t\tTraps: apd.DefaultTraps \u0026^ apd.InvalidOperation,\n\t}\n\t// ExactCtx is a decimal context with exact precision.\n\tExactCtx = DecimalCtx.WithPrecision(0)\n\t// HighPrecisionCtx is a decimal context with high precision.\n\tHighPrecisionCtx = DecimalCtx.WithPrecision(2000)\n\t// IntermediateCtx is a decimal context with additional precision for\n\t// intermediate calculations to protect against order changes that can\n\t// happen in dist SQL. The additional 5 allows the stress test to pass.\n\t// See #13689 for more analysis and other algorithms.\n\tIntermediateCtx = DecimalCtx.WithPrecision(DecimalCtx.Precision + 5)\n\t// RoundCtx is a decimal context with high precision and RoundHalfEven\n\t// rounding.\n\tRoundCtx = func() *apd.Context {\n\t\tctx := *HighPrecisionCtx\n\t\tctx.Rounding = apd.RoundHalfEven\n\t\treturn \u0026ctx\n\t}()\n)\n```\n\n```go\nvar (\n\t// ErrIntOutOfRange is reported when integer arithmetic overflows.\n\tErrIntOutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"integer out of range\")\n\t// ErrInt4OutOfRange is reported when casting to INT4 overflows.\n\tErrInt4OutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"integer out of range for type int4\")\n\t// ErrInt2OutOfRange is reported when casting to INT2 overflows.\n\tErrInt2OutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"integer out of range for type int2\")\n\t// ErrFloatOutOfRange is reported when float arithmetic overflows.\n\tErrFloatOutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"float out of range\")\n\t// ErrDecOutOfRange is reported when decimal arithmetic overflows.\n\tErrDecOutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"decimal out of range\")\n\t// ErrCharOutOfRange is reported when int cast to ASCII byte overflows.\n\tErrCharOutOfRange = pgerror.New(pgcode.NumericValueOutOfRange, \"\\\"char\\\" out of range\")\n\n\t// ErrDivByZero is reported on a division by zero.\n\tErrDivByZero = pgerror.New(pgcode.DivisionByZero, \"division by zero\")\n\t// ErrSqrtOfNegNumber is reported when taking the sqrt of a negative number.\n\tErrSqrtOfNegNumber = pgerror.New(pgcode.InvalidArgumentForPowerFunction, \"cannot take square root of a negative number\")\n\n\t// ErrShiftArgOutOfRange is reported when a shift argument is out of range.\n\tErrShiftArgOutOfRange = pgerror.New(pgcode.InvalidParameterValue, \"shift argument out of range\")\n)\n```\n\n```go\nvar (\n\tOnTypeCheckArraySubscript   func()\n\tOnTypeCheckJSONBSubscript   func()\n\tOnTypeCheckIfErr            func()\n\tOnTypeCheckArrayConstructor func()\n\tOnTypeCheckArrayFlatten     func()\n)\n```\nOnTypeCheck\\* functions are hooks which get called if not nil and the type checking of the relevant function is made.\n\n```go\nvar AbsentReturningClause = \u0026NoReturningClause{}\n```\nAbsentReturningClause is a ReturningClause variant representing the absence of a RETURNING clause.\n\n```go\nvar BinOps = map[treebin.BinaryOperatorSymbol]*BinOpOverloads{\n\ttreebin.Bitand: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Bitor: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Bitxor: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Plus: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Minus: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Mult: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Div: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.FloorDiv: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Mod: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Concat: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.LShift: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.RShift: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.Pow: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.JSONFetchVal: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.JSONFetchValPath: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.JSONFetchText: {\n\t\t// contains filtered or unexported fields\n\t},\n\n\ttreebin.JSONFetchTextPath: {\n\t\t// contains filtered or unexported fields\n\t},\n\ttreebin.Distance: {\n\t\t// contains filtered or unexported fields\n\t},\n\ttreebin.CosDistance: {\n\t\t// contains filtered or unexported fields\n\t},\n\ttreebin.NegInnerProduct: {\n\t\t// contains filtered or unexported fields\n\t},\n}\n```\nBinOps contains the binary operations indexed by operation type.\n\n```go\nvar CannotAcceptTriggerErr = pgerror.New(pgcode.FeatureNotSupported,\n\t\"cannot accept a value of type trigger\",\n)\n```\n\n```go\nvar CmpOps = cmpOpFixups(map[treecmp.ComparisonOperatorSymbol]*CmpOpOverloads{\n\ttreecmp.EQ: {overloads: []*CmpOp{\n\n\t\tmakeEqFn(types.AnyEnum, types.AnyEnum, volatility.Immutable),\n\t\tmakeEqFn(types.Bool, types.Bool, volatility.Leakproof),\n\t\tmakeEqFn(types.Bytes, types.Bytes, volatility.Leakproof),\n\t\tmakeEqFn(types.Date, types.Date, volatility.Leakproof),\n\t\tmakeEqFn(types.Decimal, types.Decimal, volatility.Immutable),\n\n\t\tmakeEqFn(types.AnyCollatedString, types.AnyCollatedString, volatility.Leakproof),\n\t\tmakeEqFn(types.Float, types.Float, volatility.Leakproof),\n\t\tmakeEqFn(types.Box2D, types.Box2D, volatility.Leakproof),\n\t\tmakeEqFn(types.Geography, types.Geography, volatility.Leakproof),\n\t\tmakeEqFn(types.Geometry, types.Geometry, volatility.Leakproof),\n\t\tmakeEqFn(types.INet, types.INet, volatility.Leakproof),\n\t\tmakeEqFn(types.Int, types.Int, volatility.Leakproof),\n\t\tmakeEqFn(types.Interval, types.Interval, volatility.Leakproof),\n\t\tmakeEqFn(types.Jsonb, types.Jsonb, volatility.Immutable),\n\t\tmakeEqFn(types.Oid, types.Oid, volatility.Leakproof),\n\t\tmakeEqFn(types.PGLSN, types.PGLSN, volatility.Leakproof),\n\t\tmakeEqFn(types.PGVector, types.PGVector, volatility.Leakproof),\n\t\tmakeEqFn(types.RefCursor, types.RefCursor, volatility.Leakproof),\n\t\tmakeEqFn(types.String, types.String, volatility.Leakproof),\n\n\t\tunpreferred(makeEqFn(types.BPChar, types.BPChar, volatility.Leakproof)),\n\t\tmakeEqFn(types.Time, types.Time, volatility.Leakproof),\n\t\tmakeEqFn(types.TimeTZ, types.TimeTZ, volatility.Leakproof),\n\t\tmakeEqFn(types.Timestamp, types.Timestamp, volatility.Leakproof),\n\t\tmakeEqFn(types.TimestampTZ, types.TimestampTZ, volatility.Leakproof),\n\t\tmakeEqFn(types.TSQuery, types.TSQuery, volatility.Immutable),\n\t\tmakeEqFn(types.TSVector, types.TSVector, volatility.Immutable),\n\t\tmakeEqFn(types.Uuid, types.Uuid, volatility.Leakproof),\n\t\tmakeEqFn(types.VarBit, types.VarBit, volatility.Leakproof),\n\n\t\tmakeEqFn(types.Date, types.Timestamp, volatility.Immutable),\n\t\tmakeEqFn(types.Date, types.TimestampTZ, volatility.Stable),\n\t\tmakeEqFn(types.Decimal, types.Float, volatility.Leakproof),\n\t\tmakeEqFn(types.Decimal, types.Int, volatility.Leakproof),\n\t\tmakeEqFn(types.Float, types.Decimal, volatility.Leakproof),\n\t\tmakeEqFn(types.Float, types.Int, volatility.Leakproof),\n\t\tmakeEqFn(types.Int, types.Decimal, volatility.Leakproof),\n\t\tmakeEqFn(types.Int, types.Float, volatility.Leakproof),\n\t\tmakeEqFn(types.Int, types.Oid, volatility.Leakproof),\n\t\tmakeEqFn(types.Oid, types.Int, volatility.Leakproof),\n\t\tmakeEqFn(types.Timestamp, types.Date, volatility.Immutable),\n\t\tmakeEqFn(types.Timestamp, types.TimestampTZ, volatility.Stable),\n\t\tmakeEqFn(types.TimestampTZ, types.Date, volatility.Stable),\n\t\tmakeEqFn(types.TimestampTZ, types.Timestamp, volatility.Stable),\n\t\tmakeEqFn(types.Time, types.TimeTZ, volatility.Stable),\n\t\tmakeEqFn(types.TimeTZ, types.Time, volatility.Stable),\n\n\t\t{\n\t\t\tLeftType:  types.AnyTuple,\n\t\t\tRightType: types.AnyTuple,\n\t\t\tEvalOp: \u0026CompareTupleOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.EQ),\n\t\t\t},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.LT: {overloads: []*CmpOp{\n\n\t\tmakeLtFn(types.AnyEnum, types.AnyEnum, volatility.Immutable),\n\t\tmakeLtFn(types.Bool, types.Bool, volatility.Leakproof),\n\t\tmakeLtFn(types.Bytes, types.Bytes, volatility.Leakproof),\n\t\tmakeLtFn(types.Date, types.Date, volatility.Leakproof),\n\t\tmakeLtFn(types.Decimal, types.Decimal, volatility.Immutable),\n\n\t\tmakeLtFn(types.AnyCollatedString, types.AnyCollatedString, volatility.Leakproof),\n\t\tmakeLtFn(types.Float, types.Float, volatility.Leakproof),\n\t\tmakeLtFn(types.Box2D, types.Box2D, volatility.Leakproof),\n\t\tmakeLtFn(types.Geography, types.Geography, volatility.Leakproof),\n\t\tmakeLtFn(types.Geometry, types.Geometry, volatility.Leakproof),\n\t\tmakeLtFn(types.INet, types.INet, volatility.Leakproof),\n\t\tmakeLtFn(types.Int, types.Int, volatility.Leakproof),\n\t\tmakeLtFn(types.Interval, types.Interval, volatility.Leakproof),\n\t\tmakeLtFn(types.Oid, types.Oid, volatility.Leakproof),\n\t\tmakeLtFn(types.PGLSN, types.PGLSN, volatility.Leakproof),\n\t\tmakeLtFn(types.PGVector, types.PGVector, volatility.Leakproof),\n\t\tmakeLtFn(types.RefCursor, types.RefCursor, volatility.Leakproof),\n\t\tmakeLtFn(types.String, types.String, volatility.Leakproof),\n\n\t\tunpreferred(makeLtFn(types.BPChar, types.BPChar, volatility.Leakproof)),\n\t\tmakeLtFn(types.Time, types.Time, volatility.Leakproof),\n\t\tmakeLtFn(types.TimeTZ, types.TimeTZ, volatility.Leakproof),\n\t\tmakeLtFn(types.Timestamp, types.Timestamp, volatility.Leakproof),\n\t\tmakeLtFn(types.TimestampTZ, types.TimestampTZ, volatility.Leakproof),\n\t\tmakeLtFn(types.Uuid, types.Uuid, volatility.Leakproof),\n\t\tmakeLtFn(types.VarBit, types.VarBit, volatility.Leakproof),\n\t\tmakeLtFn(types.Jsonb, types.Jsonb, volatility.Immutable),\n\n\t\tmakeLtFn(types.Date, types.Timestamp, volatility.Immutable),\n\t\tmakeLtFn(types.Date, types.TimestampTZ, volatility.Stable),\n\t\tmakeLtFn(types.Decimal, types.Float, volatility.Leakproof),\n\t\tmakeLtFn(types.Decimal, types.Int, volatility.Leakproof),\n\t\tmakeLtFn(types.Float, types.Decimal, volatility.Leakproof),\n\t\tmakeLtFn(types.Float, types.Int, volatility.Leakproof),\n\t\tmakeLtFn(types.Int, types.Decimal, volatility.Leakproof),\n\t\tmakeLtFn(types.Int, types.Float, volatility.Leakproof),\n\t\tmakeLtFn(types.Int, types.Oid, volatility.Leakproof),\n\t\tmakeLtFn(types.Oid, types.Int, volatility.Leakproof),\n\t\tmakeLtFn(types.Timestamp, types.Date, volatility.Immutable),\n\t\tmakeLtFn(types.Timestamp, types.TimestampTZ, volatility.Stable),\n\t\tmakeLtFn(types.TimestampTZ, types.Date, volatility.Stable),\n\t\tmakeLtFn(types.TimestampTZ, types.Timestamp, volatility.Stable),\n\t\tmakeLtFn(types.Time, types.TimeTZ, volatility.Stable),\n\t\tmakeLtFn(types.TimeTZ, types.Time, volatility.Stable),\n\n\t\t{\n\t\t\tLeftType:  types.AnyTuple,\n\t\t\tRightType: types.AnyTuple,\n\t\t\tEvalOp: \u0026CompareTupleOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.LT),\n\t\t\t},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.LE: {overloads: []*CmpOp{\n\n\t\tmakeLeFn(types.AnyEnum, types.AnyEnum, volatility.Immutable),\n\t\tmakeLeFn(types.Bool, types.Bool, volatility.Leakproof),\n\t\tmakeLeFn(types.Bytes, types.Bytes, volatility.Leakproof),\n\t\tmakeLeFn(types.Date, types.Date, volatility.Leakproof),\n\t\tmakeLeFn(types.Decimal, types.Decimal, volatility.Immutable),\n\n\t\tmakeLeFn(types.AnyCollatedString, types.AnyCollatedString, volatility.Leakproof),\n\t\tmakeLeFn(types.Float, types.Float, volatility.Leakproof),\n\t\tmakeLeFn(types.Box2D, types.Box2D, volatility.Leakproof),\n\t\tmakeLeFn(types.Geography, types.Geography, volatility.Leakproof),\n\t\tmakeLeFn(types.Geometry, types.Geometry, volatility.Leakproof),\n\t\tmakeLeFn(types.INet, types.INet, volatility.Leakproof),\n\t\tmakeLeFn(types.Int, types.Int, volatility.Leakproof),\n\t\tmakeLeFn(types.Interval, types.Interval, volatility.Leakproof),\n\t\tmakeLeFn(types.Oid, types.Oid, volatility.Leakproof),\n\t\tmakeLeFn(types.PGLSN, types.PGLSN, volatility.Leakproof),\n\t\tmakeLeFn(types.PGVector, types.PGVector, volatility.Leakproof),\n\t\tmakeLeFn(types.RefCursor, types.RefCursor, volatility.Leakproof),\n\t\tmakeLeFn(types.String, types.String, volatility.Leakproof),\n\n\t\tunpreferred(makeLeFn(types.BPChar, types.BPChar, volatility.Leakproof)),\n\t\tmakeLeFn(types.Time, types.Time, volatility.Leakproof),\n\t\tmakeLeFn(types.TimeTZ, types.TimeTZ, volatility.Leakproof),\n\t\tmakeLeFn(types.Timestamp, types.Timestamp, volatility.Leakproof),\n\t\tmakeLeFn(types.TimestampTZ, types.TimestampTZ, volatility.Leakproof),\n\t\tmakeLeFn(types.Uuid, types.Uuid, volatility.Leakproof),\n\t\tmakeLeFn(types.VarBit, types.VarBit, volatility.Leakproof),\n\t\tmakeLeFn(types.Jsonb, types.Jsonb, volatility.Immutable),\n\n\t\tmakeLeFn(types.Date, types.Timestamp, volatility.Immutable),\n\t\tmakeLeFn(types.Date, types.TimestampTZ, volatility.Stable),\n\t\tmakeLeFn(types.Decimal, types.Float, volatility.Leakproof),\n\t\tmakeLeFn(types.Decimal, types.Int, volatility.Leakproof),\n\t\tmakeLeFn(types.Float, types.Decimal, volatility.Leakproof),\n\t\tmakeLeFn(types.Float, types.Int, volatility.Leakproof),\n\t\tmakeLeFn(types.Int, types.Decimal, volatility.Leakproof),\n\t\tmakeLeFn(types.Int, types.Float, volatility.Leakproof),\n\t\tmakeLeFn(types.Int, types.Oid, volatility.Leakproof),\n\t\tmakeLeFn(types.Oid, types.Int, volatility.Leakproof),\n\t\tmakeLeFn(types.Timestamp, types.Date, volatility.Immutable),\n\t\tmakeLeFn(types.Timestamp, types.TimestampTZ, volatility.Stable),\n\t\tmakeLeFn(types.TimestampTZ, types.Date, volatility.Stable),\n\t\tmakeLeFn(types.TimestampTZ, types.Timestamp, volatility.Stable),\n\t\tmakeLeFn(types.Time, types.TimeTZ, volatility.Stable),\n\t\tmakeLeFn(types.TimeTZ, types.Time, volatility.Stable),\n\n\t\t{\n\t\t\tLeftType:  types.AnyTuple,\n\t\t\tRightType: types.AnyTuple,\n\t\t\tEvalOp: \u0026CompareTupleOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.LE),\n\t\t\t},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.IsNotDistinctFrom: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:  types.Unknown,\n\t\t\tRightType: types.Unknown,\n\t\t\tEvalOp: \u0026CompareScalarOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.IsNotDistinctFrom),\n\t\t\t},\n\t\t\tCalledOnNullInput: true,\n\n\t\t\tOverloadPreference: OverloadPreferencePreferred,\n\t\t\tVolatility:         volatility.Leakproof,\n\t\t},\n\t\t{\n\t\t\tLeftType:  types.AnyArray,\n\t\t\tRightType: types.Unknown,\n\t\t\tEvalOp: \u0026CompareScalarOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.IsNotDistinctFrom),\n\t\t\t},\n\t\t\tCalledOnNullInput: true,\n\t\t\tVolatility:        volatility.Leakproof,\n\t\t},\n\n\t\tmakeIsFn(types.AnyEnum, types.AnyEnum, volatility.Immutable),\n\t\tmakeIsFn(types.Bool, types.Bool, volatility.Leakproof),\n\t\tmakeIsFn(types.Bytes, types.Bytes, volatility.Leakproof),\n\t\tmakeIsFn(types.Date, types.Date, volatility.Leakproof),\n\t\tmakeIsFn(types.Decimal, types.Decimal, volatility.Immutable),\n\n\t\tmakeIsFn(types.AnyCollatedString, types.AnyCollatedString, volatility.Leakproof),\n\t\tmakeIsFn(types.Float, types.Float, volatility.Leakproof),\n\t\tmakeIsFn(types.Box2D, types.Box2D, volatility.Leakproof),\n\t\tmakeIsFn(types.Geography, types.Geography, volatility.Leakproof),\n\t\tmakeIsFn(types.Geometry, types.Geometry, volatility.Leakproof),\n\t\tmakeIsFn(types.INet, types.INet, volatility.Leakproof),\n\t\tmakeIsFn(types.Int, types.Int, volatility.Leakproof),\n\t\tmakeIsFn(types.Interval, types.Interval, volatility.Leakproof),\n\t\tmakeIsFn(types.Jsonb, types.Jsonb, volatility.Immutable),\n\t\tmakeIsFn(types.Jsonpath, types.Jsonpath, volatility.Leakproof),\n\t\tmakeIsFn(types.Oid, types.Oid, volatility.Leakproof),\n\t\tmakeIsFn(types.PGLSN, types.PGLSN, volatility.Leakproof),\n\t\tmakeIsFn(types.PGVector, types.PGVector, volatility.Leakproof),\n\t\tmakeIsFn(types.RefCursor, types.RefCursor, volatility.Leakproof),\n\t\tmakeIsFn(types.String, types.String, volatility.Leakproof),\n\n\t\tunpreferred(makeIsFn(types.BPChar, types.BPChar, volatility.Leakproof)),\n\t\tmakeIsFn(types.Time, types.Time, volatility.Leakproof),\n\t\tmakeIsFn(types.TimeTZ, types.TimeTZ, volatility.Leakproof),\n\t\tmakeIsFn(types.Timestamp, types.Timestamp, volatility.Leakproof),\n\t\tmakeIsFn(types.TimestampTZ, types.TimestampTZ, volatility.Leakproof),\n\t\tmakeIsFn(types.TSQuery, types.TSQuery, volatility.Immutable),\n\t\tmakeIsFn(types.TSVector, types.TSVector, volatility.Immutable),\n\t\tmakeIsFn(types.Uuid, types.Uuid, volatility.Leakproof),\n\t\tmakeIsFn(types.VarBit, types.VarBit, volatility.Leakproof),\n\n\t\tmakeIsFn(types.Date, types.Timestamp, volatility.Immutable),\n\t\tmakeIsFn(types.Date, types.TimestampTZ, volatility.Stable),\n\t\tmakeIsFn(types.Decimal, types.Float, volatility.Leakproof),\n\t\tmakeIsFn(types.Decimal, types.Int, volatility.Leakproof),\n\t\tmakeIsFn(types.Float, types.Decimal, volatility.Leakproof),\n\t\tmakeIsFn(types.Float, types.Int, volatility.Leakproof),\n\t\tmakeIsFn(types.Int, types.Decimal, volatility.Leakproof),\n\t\tmakeIsFn(types.Int, types.Float, volatility.Leakproof),\n\t\tmakeIsFn(types.Int, types.Oid, volatility.Leakproof),\n\t\tmakeIsFn(types.Oid, types.Int, volatility.Leakproof),\n\t\tmakeIsFn(types.Timestamp, types.Date, volatility.Immutable),\n\t\tmakeIsFn(types.Timestamp, types.TimestampTZ, volatility.Stable),\n\t\tmakeIsFn(types.TimestampTZ, types.Date, volatility.Stable),\n\t\tmakeIsFn(types.TimestampTZ, types.Timestamp, volatility.Stable),\n\t\tmakeIsFn(types.Time, types.TimeTZ, volatility.Stable),\n\t\tmakeIsFn(types.TimeTZ, types.Time, volatility.Stable),\n\n\t\tmakeIsFn(types.Void, types.Unknown, volatility.Leakproof),\n\t\tmakeIsFn(types.Unknown, types.Void, volatility.Leakproof),\n\n\t\t{\n\t\t\tLeftType:          types.AnyTuple,\n\t\t\tRightType:         types.AnyTuple,\n\t\t\tCalledOnNullInput: true,\n\t\t\tEvalOp: \u0026CompareAnyTupleOp{\n\t\t\t\tComparisonOperator: treecmp.MakeComparisonOperator(treecmp.IsNotDistinctFrom),\n\t\t\t},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.In: {overloads: []*CmpOp{\n\t\tmakeEvalTupleIn(types.AnyEnum, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Bool, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Bytes, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Date, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Decimal, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.AnyCollatedString, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.AnyTuple, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Float, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Box2D, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Geography, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Geometry, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.INet, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Int, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Interval, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Jsonb, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Oid, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.PGLSN, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.PGVector, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.RefCursor, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.String, volatility.Leakproof),\n\n\t\tunpreferred(makeEvalTupleIn(types.BPChar, volatility.Leakproof)),\n\t\tmakeEvalTupleIn(types.Time, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.TimeTZ, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Timestamp, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.TimestampTZ, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.Uuid, volatility.Leakproof),\n\t\tmakeEvalTupleIn(types.VarBit, volatility.Leakproof),\n\t}},\n\n\ttreecmp.Like: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.String,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026MatchLikeOp{CaseInsensitive: false},\n\t\t\tVolatility: volatility.Leakproof,\n\t\t},\n\t}},\n\n\ttreecmp.ILike: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.String,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026MatchLikeOp{CaseInsensitive: true},\n\t\t\tVolatility: volatility.Leakproof,\n\t\t},\n\t}},\n\n\ttreecmp.SimilarTo: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.String,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026SimilarToOp{Escape: '\\\\'},\n\t\t\tVolatility: volatility.Leakproof,\n\t\t},\n\t}},\n\n\ttreecmp.RegMatch: {overloads: append([]*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.String,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026MatchRegexpOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t},\n\t\tmakeBox2DComparisonOperators(\n\t\t\tfunc(lhs, rhs *geo.CartesianBoundingBox) bool {\n\t\t\t\treturn lhs.Covers(rhs)\n\t\t\t},\n\t\t)...,\n\t)},\n\n\ttreecmp.RegIMatch: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.String,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026MatchRegexpOp{CaseInsensitive: true},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.JSONExists: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.Jsonb,\n\t\t\tRightType:  types.String,\n\t\t\tEvalOp:     \u0026JSONExistsOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.JSONSomeExists: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.Jsonb,\n\t\t\tRightType:  types.StringArray,\n\t\t\tEvalOp:     \u0026JSONSomeExistsOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.JSONAllExists: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.Jsonb,\n\t\t\tRightType:  types.StringArray,\n\t\t\tEvalOp:     \u0026JSONAllExistsOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.Contains: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.AnyArray,\n\t\t\tRightType:  types.AnyArray,\n\t\t\tEvalOp:     \u0026ContainsArrayOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tLeftType:   types.Jsonb,\n\t\t\tRightType:  types.Jsonb,\n\t\t\tEvalOp:     \u0026ContainsJsonbOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\ttreecmp.ContainedBy: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.AnyArray,\n\t\t\tRightType:  types.AnyArray,\n\t\t\tEvalOp:     \u0026ContainedByArrayOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tLeftType:   types.Jsonb,\n\t\t\tRightType:  types.Jsonb,\n\t\t\tEvalOp:     \u0026ContainedByJsonbOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\ttreecmp.Overlaps: {overloads: append([]*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.AnyArray,\n\t\t\tRightType:  types.AnyArray,\n\t\t\tEvalOp:     \u0026OverlapsArrayOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tLeftType:   types.INet,\n\t\t\tRightType:  types.INet,\n\t\t\tEvalOp:     \u0026OverlapsINetOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}, makeBox2DComparisonOperators(\n\t\tfunc(lhs, rhs *geo.CartesianBoundingBox) bool {\n\t\t\treturn lhs.Intersects(rhs)\n\t\t},\n\t)...),\n\t},\n\ttreecmp.TSMatches: {overloads: []*CmpOp{\n\t\t{\n\t\t\tLeftType:   types.TSQuery,\n\t\t\tRightType:  types.TSVector,\n\t\t\tEvalOp:     \u0026TSMatchesQueryVectorOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tLeftType:   types.TSVector,\n\t\t\tRightType:  types.TSQuery,\n\t\t\tEvalOp:     \u0026TSMatchesVectorQueryOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n})\n```\nCmpOps contains the comparison operations indexed by operation type.\n\n```go\nvar CompositeKeyMatchMethodType = [...]CompositeKeyMatchMethod{\n\tsemenumpb.Match_SIMPLE:  MatchSimple,\n\tsemenumpb.Match_FULL:    MatchFull,\n\tsemenumpb.Match_PARTIAL: MatchPartial,\n}\n```\nCompositeKeyMatchMethodType allows the conversion from a ForeignKeyReference\\_Match to a tree.ReferenceCompositeKeyMatchMethod. This should match CompositeKeyMatchMethodValue.\n\n```go\nvar CompositeKeyMatchMethodValue = [...]semenumpb.Match{\n\tMatchSimple:  semenumpb.Match_SIMPLE,\n\tMatchFull:    semenumpb.Match_FULL,\n\tMatchPartial: semenumpb.Match_PARTIAL,\n}\n```\nCompositeKeyMatchMethodValue allows the conversion from a tree.ReferenceCompositeKeyMatchMethod to a ForeignKeyReference\\_Match.\n\n```go\nvar DMaxIPAddr = NewDIPAddr(DIPAddr{ipaddr.IPAddr{Family: ipaddr.IPv6family, Addr: dIPv6max, Mask: 128}})\n```\nDMaxIPAddr is the max DIPaddr.\n\n```go\nvar DMaxUUID = NewDUuid(DUuid{uuid.UUID{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,\n\t0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}})\n```\nDMaxUUID is the max UUID.\n\n```go\nvar DMinIPAddr = NewDIPAddr(DIPAddr{ipaddr.IPAddr{Family: ipaddr.IPv4family, Addr: dIPv4min, Mask: 0}})\n```\nDMinIPAddr is the min DIPAddr.\n\n```go\nvar DMinUUID = NewDUuid(DUuid{uuid.UUID{}})\n```\nDMinUUID is the min UUID.\n\n```go\nvar DVoidDatum = \u0026DVoid{}\n```\nDVoidDatum is an instance of the DVoid datum.\n\n```go\nvar DZeroTimestamp = \u0026DTimestamp{}\n```\nDZeroTimestamp is the zero-valued DTimestamp.\n\n```go\nvar DZeroTimestampTZ = \u0026DTimestampTZ{}\n```\nDZeroTimestampTZ is the zero-valued DTimestampTZ.\n\n```go\nvar (\n\n\t// ErrAsOfSpecifiedWithReadWrite is returned when a statement attempts to set\n\t// a historical query to READ WRITE which conflicts with its implied READ ONLY\n\t// mode.\n\tErrAsOfSpecifiedWithReadWrite = pgerror.New(pgcode.Syntax, \"AS OF SYSTEM TIME specified with READ WRITE mode\")\n)\n```\n\n```go\nvar ErrConflictingRoutineOption = pgerror.New(pgcode.Syntax, \"conflicting or redundant options\")\n```\nErrConflictingRoutineOption indicates that there are conflicting or redundant function options from user input to either create or alter a function.\n\n```go\nvar ErrRoutineUndefined = pgerror.Newf(pgcode.UndefinedFunction, \"routine undefined\")\n```\nErrRoutineUndefined indicates that the required function is not found. It is used as the cause of the errors thrown when function resolution cannot find a required function.\n\n```go\nvar ForeignKeyReferenceActionType = [...]ReferenceAction{\n\tsemenumpb.ForeignKeyAction_NO_ACTION:   NoAction,\n\tsemenumpb.ForeignKeyAction_RESTRICT:    Restrict,\n\tsemenumpb.ForeignKeyAction_SET_DEFAULT: SetDefault,\n\tsemenumpb.ForeignKeyAction_SET_NULL:    SetNull,\n\tsemenumpb.ForeignKeyAction_CASCADE:     Cascade,\n}\n```\nForeignKeyReferenceActionType allows the conversion between a tree.ReferenceAction and a ForeignKeyReference\\_Action.\n\n```go\nvar ForeignKeyReferenceActionValue = [...]semenumpb.ForeignKeyAction{\n\tNoAction:   semenumpb.ForeignKeyAction_NO_ACTION,\n\tRestrict:   semenumpb.ForeignKeyAction_RESTRICT,\n\tSetDefault: semenumpb.ForeignKeyAction_SET_DEFAULT,\n\tSetNull:    semenumpb.ForeignKeyAction_SET_NULL,\n\tCascade:    semenumpb.ForeignKeyAction_CASCADE,\n}\n```\nForeignKeyReferenceActionValue allows the conversion between a semenumpb.ForeignKeyAction\\_Action and a tree.ReferenceAction.\n\n```go\nvar FunDefs map[string]*FunctionDefinition\n```\nFunDefs holds pre-allocated FunctionDefinition instances for every builtin function. Initialized by builtins.init().\n\nNote that this is extremely similar to the set stored in builtinsregistry. The hope is to remove this map at some point in the future as we delegate function definition resolution to interfaces defined in the SemaContext.\n\n```go\nvar IsolationLevelMap = map[string]IsolationLevel{\n\t\"read uncommitted\": ReadUncommittedIsolation,\n\t\"read committed\":   ReadCommittedIsolation,\n\t\"repeatable read\":  RepeatableReadIsolation,\n\t\"snapshot\":         SnapshotIsolation,\n\t\"serializable\":     SerializableIsolation,\n}\n```\nIsolationLevelMap is a map from string isolation level name to isolation level, in the lowercase format that set isolation\\_level supports.\n\n```go\nvar JobCommandToStatement = map[JobCommand]string{\n\tPauseJob:  \"PAUSE\",\n\tCancelJob: \"CANCEL\",\n\tResumeJob: \"RESUME\",\n}\n```\nJobCommandToStatement translates a job command integer to a statement prefix.\n\n```go\nvar OidToBuiltinName map[oid.Oid]string\n```\nOidToBuiltinName contains a map from the hashed OID of all builtin functions to their name.\n\n```go\nvar OidToQualifiedBuiltinOverload map[oid.Oid]QualifiedOverload\n```\nOidToQualifiedBuiltinOverload is a map from builtin function OID to an qualified overload.\n\n```go\nvar OnCastTypeCheck map[CastCounterType]func()\n```\nOnCastTypeCheck is a map of CastCounterTypes to their hook.\n\n```go\nvar PlanGistFromCtx func(context.Context) string\n```\nPlanGistFromCtx returns the plan gist if it is stored in the context. It is injected from the sql package to avoid import cycle.\n\n```go\nvar ResolvedBuiltinFuncDefs map[string]*ResolvedFunctionDefinition\n```\nResolvedBuiltinFuncDefs holds pre-allocated ResolvedFunctionDefinition instances. Keys of the map is schema qualified function names.\n\n```go\nvar ReturningNothingClause = \u0026ReturningNothing{}\n```\nReturningNothingClause is a shared instance to avoid unnecessary allocations.\n\n```go\nvar ShowLastQueryStatisticsDefaultColumns = NameList([]Name{\n\t\"parse_latency\",\n\t\"plan_latency\",\n\t\"exec_latency\",\n\t\"service_latency\",\n\t\"post_commit_jobs_latency\",\n})\n```\nShowLastQueryStatisticsDefaultColumns is the default list of columns when the USING clause is not specified. Note: the form that does not specify the USING clause is deprecated. Remove it when there are no more clients using it (22.1 or later).\n\n```go\nvar TriggerActionTimeFromTree = [...]semenumpb.TriggerActionTime{\n\tTriggerActionTimeUnknown:   semenumpb.TriggerActionTime_ACTION_UNKNOWN,\n\tTriggerActionTimeBefore:    semenumpb.TriggerActionTime_BEFORE,\n\tTriggerActionTimeAfter:     semenumpb.TriggerActionTime_AFTER,\n\tTriggerActionTimeInsteadOf: semenumpb.TriggerActionTime_INSTEAD_OF,\n}\n```\nTriggerActionTimeFromTree allows the conversion from a semenumpb.TriggerActionTime to a tree.TriggerActionTime.\n\n```go\nvar TriggerActionTimeToTree = [...]TriggerActionTime{\n\tsemenumpb.TriggerActionTime_ACTION_UNKNOWN: TriggerActionTimeUnknown,\n\tsemenumpb.TriggerActionTime_BEFORE:         TriggerActionTimeBefore,\n\tsemenumpb.TriggerActionTime_AFTER:          TriggerActionTimeAfter,\n\tsemenumpb.TriggerActionTime_INSTEAD_OF:     TriggerActionTimeInsteadOf,\n}\n```\nTriggerActionTimeToTree allows the conversion from a tree.TriggerActionTime to a semenumpb.TriggerActionTime.\n\n```go\nvar TriggerEventTypeFromTree = [...]semenumpb.TriggerEventType{\n\tTriggerEventTypeUnknown: semenumpb.TriggerEventType_EVENT_UNKNOWN,\n\tTriggerEventInsert:      semenumpb.TriggerEventType_INSERT,\n\tTriggerEventUpdate:      semenumpb.TriggerEventType_UPDATE,\n\tTriggerEventDelete:      semenumpb.TriggerEventType_DELETE,\n\tTriggerEventTruncate:    semenumpb.TriggerEventType_TRUNCATE,\n}\n```\nTriggerEventTypeFromTree allows the conversion from a tree.TriggerEventType to a semenumpb.TriggerEventType.\n\n```go\nvar TriggerEventTypeToTree = [...]TriggerEventType{\n\tsemenumpb.TriggerEventType_EVENT_UNKNOWN: TriggerEventTypeUnknown,\n\tsemenumpb.TriggerEventType_INSERT:        TriggerEventInsert,\n\tsemenumpb.TriggerEventType_UPDATE:        TriggerEventUpdate,\n\tsemenumpb.TriggerEventType_DELETE:        TriggerEventDelete,\n\tsemenumpb.TriggerEventType_TRUNCATE:      TriggerEventTruncate,\n}\n```\nTriggerEventTypeToTree allows the conversion from a semenumpb.TriggerEventType to a tree.TriggerEventType.\n\n```go\nvar UnaryOpName = [...]string{\n\tUnaryMinus:      \"-\",\n\tUnaryPlus:       \"+\",\n\tUnaryComplement: \"~\",\n\tUnarySqrt:       \"|/\",\n\tUnaryCbrt:       \"||/\",\n}\n```\nUnaryOpName is the mapping of unary operators to names.\n\n```go\nvar UnaryOps = unaryOpFixups(map[UnaryOperatorSymbol]*UnaryOpOverloads{\n\tUnaryPlus: {overloads: []*UnaryOp{\n\t\t{\n\t\t\tTyp:        types.Int,\n\t\t\tReturnType: types.Int,\n\t\t\tEvalOp:     \u0026UnaryNoop{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Float,\n\t\t\tReturnType: types.Float,\n\t\t\tEvalOp:     \u0026UnaryNoop{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Decimal,\n\t\t\tReturnType: types.Decimal,\n\t\t\tEvalOp:     \u0026UnaryNoop{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Interval,\n\t\t\tReturnType: types.Interval,\n\t\t\tEvalOp:     \u0026UnaryNoop{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\tUnaryMinus: {overloads: []*UnaryOp{\n\t\t{\n\t\t\tTyp:        types.Int,\n\t\t\tReturnType: types.Int,\n\t\t\tEvalOp:     \u0026UnaryMinusIntOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Float,\n\t\t\tReturnType: types.Float,\n\t\t\tEvalOp:     \u0026UnaryMinusFloatOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Decimal,\n\t\t\tReturnType: types.Decimal,\n\t\t\tEvalOp:     \u0026UnaryMinusDecimalOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Interval,\n\t\t\tReturnType: types.Interval,\n\t\t\tEvalOp:     \u0026UnaryMinusIntervalOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\tUnaryComplement: {overloads: []*UnaryOp{\n\t\t{\n\t\t\tTyp:        types.Int,\n\t\t\tReturnType: types.Int,\n\t\t\tEvalOp:     \u0026ComplementIntOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.VarBit,\n\t\t\tReturnType: types.VarBit,\n\t\t\tEvalOp:     \u0026ComplementVarBitOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.INet,\n\t\t\tReturnType: types.INet,\n\t\t\tEvalOp:     \u0026ComplementINetOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\tUnarySqrt: {overloads: []*UnaryOp{\n\t\t{\n\t\t\tTyp:        types.Float,\n\t\t\tReturnType: types.Float,\n\t\t\tEvalOp:     \u0026SqrtFloatOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Decimal,\n\t\t\tReturnType: types.Decimal,\n\t\t\tEvalOp:     \u0026SqrtDecimalOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n\n\tUnaryCbrt: {overloads: []*UnaryOp{\n\t\t{\n\t\t\tTyp:        types.Float,\n\t\t\tReturnType: types.Float,\n\t\t\tEvalOp:     \u0026CbrtFloatOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t\t{\n\t\t\tTyp:        types.Decimal,\n\t\t\tReturnType: types.Decimal,\n\t\t\tEvalOp:     \u0026CbrtDecimalOp{},\n\t\t\tVolatility: volatility.Immutable,\n\t\t},\n\t}},\n})\n```\nUnaryOps contains the unary operations indexed by operation type.\n\n```go\nvar UnknownReturnType *types.T\n```\nUnknownReturnType is returned from ReturnTypers when the arguments provided are not sufficient to determine a return type. This is necessary for cases like overload resolution, where the argument types are not resolved yet so the type-level function will be called without argument types. If a ReturnTyper returns unknownReturnType, then the candidate function set cannot be refined. This means that only ReturnTypers that never return unknownReturnType, like those created with FixedReturnType, can help reduce overload ambiguity.\n\n## Functions\n\n```go\nfunc AsJSON(\n\td Datum, dcc sessiondatapb.DataConversionConfig, loc *time.Location,\n) (json.JSON, error)\n```\nAsJSON converts a datum into our standard json representation.\n\n```go\nfunc AsString(n NodeFormatter) string\n```\nAsString pretty prints a node to a string.\n\n```go\nfunc AsStringWithFQNames(n NodeFormatter, ann *Annotations) string\n```\nAsStringWithFQNames pretty prints a node to a string with the FmtAlwaysQualifyTableNames flag (which requires annotations).\n\n```go\nfunc AsStringWithFlags(n NodeFormatter, fl FmtFlags, opts ...FmtCtxOption) string\n```\nAsStringWithFlags pretty prints a node to a string given specific flags; only flags that don't require Annotations can be used.\n\n```go\nfunc CanModifySchema(stmt Statement) bool\n```\nCanModifySchema returns true if the statement can modify the database schema.\n\n```go\nfunc CanWriteData(stmt Statement) bool\n```\nCanWriteData returns true if the statement can modify data.\n\n```go\nfunc CheckIsWindowOrAgg(def *ResolvedFunctionDefinition) error\n```\nCheckIsWindowOrAgg returns an error if the function definition is not a window function or an aggregate.\n\n```go\nfunc CheckUnsupportedType(ctx context.Context, semaCtx *SemaContext, typ *types.T) error\n```\nCheckUnsupportedType returns an error if the given type is not supported by the current cluster version. If the given SemaContext is nil or uninitialized, CheckUnsupportedType returns nil.\n\n```go\nfunc CmpOpInverse(i treecmp.ComparisonOperatorSymbol) (treecmp.ComparisonOperatorSymbol, bool)\n```\nCmpOpInverse returns the inverse of the comparison operator if it exists. The second return value is true if it exists, and false otherwise.\n\n```go\nfunc CompareBools(d, v bool) int\n```\nCompareBools compares the input bools according to the SQL comparison rules.\n\n```go\nfunc CompareDecimals(d *apd.Decimal, v *apd.Decimal) int\n```\nCompareDecimals compares 2 apd.Decimals according to the SQL comparison rules, making sure that NaNs sort first.\n\n```go\nfunc ComputeColNameInternal(\n\tctx context.Context, sp SearchPath, target Expr, funcResolver FunctionReferenceResolver,\n) (int, string, error)\n```\nComputeColNameInternal is the workhorse for GetRenderColName. The return value indicates the strength of the confidence in the result: 0 - no information 1 - second-best name choice 2 - good name choice\n\nThe algorithm is borrowed from FigureColnameInternal in PostgreSQL 10, to be found in src/backend/parser/parse\\_target.c.\n\n```go\nfunc ContainsVars(expr Expr) bool\n```\nContainsVars returns true if the expression contains any variables. (variables = sub-expressions, placeholders, indexed vars, etc.)\n\n```go\nfunc DatumTypeSize(t *types.T) (size uintptr, isVarlen bool)\n```\nDatumTypeSize returns a lower bound on the total size of a Datum of the given type in bytes, including memory that is pointed at (even if shared between Datum instances) but excluding allocation overhead.\n\nThe second return value indicates whether data of this type have different sizes.\n\nIt holds for every Datum d that d.Size() \u003e= DatumSize(d.ResolvedType())\n\n```go\nfunc EqualComparisonFunctionExists(leftType, rightType *types.T) bool\n```\nEqualComparisonFunctionExists looks up an overload of the \"=\" operator for a given pair of input operand types.\n\n```go\nfunc ErrNameString(s string) string\n```\nErrNameString escapes an identifier stored a string to a SQL identifier suitable for printing in error messages.\n\n```go\nfunc ErrNameStringP(s *string) string\n```\nErrNameStringP escapes an identifier stored a string to a SQL identifier suitable for printing in error messages, avoiding a heap allocation.\n\n```go\nfunc ErrString(n NodeFormatter) string\n```\nErrString pretty prints a node to a string. Identifiers are not quoted.\n\n```go\nfunc ExplainFlags() map[string]ExplainFlag\n```\nExplainFlags returns a map from EXPLAIN flag strings to ExplainFlag.\n\n```go\nfunc ExplainModes() map[string]ExplainMode\n```\nExplainModes returns a map from EXPLAIN mode strings to ExplainMode.\n\n```go\nfunc ExprDebugString(expr Expr) string\n```\nExprDebugString generates a multi-line debug string with one node per line in Go format.\n\n```go\nfunc FoldComparisonExpr(\n\top treecmp.ComparisonOperator, left, right Expr,\n) (newOp treecmp.ComparisonOperator, newLeft Expr, newRight Expr, flipped bool, not bool)\n```\nFoldComparisonExpr folds a given comparison operation and its expressions into an equivalent operation that will hit in the CmpOps map, returning this new operation, along with potentially flipped operands and \"flipped\" and \"not\" flags.\n\n```go\nfunc FoldComparisonExprWithDatums(\n\top treecmp.ComparisonOperator, left, right Datum,\n) (newOp treecmp.ComparisonOperator, newLeft Datum, newRight Datum, flipped bool, not bool)\n```\nFoldComparisonExprWithDatums is the same as FoldComparisonExpr, but receives and returns Datums instead of Exprs. This allows callers passing Datums and expecting Datums to be returned to avoid the expensive interface conversions.\n\n```go\nfunc FormatDate(d pgdate.Date, ctx *FmtCtx)\n```\nFormatDate writes d into ctx according to the format flags.\n\n```go\nfunc FormatDuration(d duration.Duration, ctx *FmtCtx)\n```\nFormatDuration writes d into ctx according to the format flags.\n\n```go\nfunc GetEnumComponentsFromLogicalRep(typ *types.T, rep string) ([]byte, string, error)\n```\nGetEnumComponentsFromLogicalRep returns the physical and logical components for an enum of the requested type. It returns an error if it cannot find a matching logical representation.\n\n```go\nfunc GetEnumComponentsFromPhysicalRep(typ *types.T, rep []byte) ([]byte, string, error)\n```\nGetEnumComponentsFromPhysicalRep returns the physical and logical components for an enum of the requested type. It returns an error if it cannot find a matching physical representation.\n\n```go\nfunc GetJSONPath(j json.JSON, ary DArray) (json.JSON, error)\n```\nGetJSONPath is used for the #\u003e and #\u003e\u003e operators.\n\n```go\nfunc GetParamsAndReturnType(impl overloadImpl) (TypeList, ReturnTyper)\n```\nGetParamsAndReturnType gets the parameters and return type of an overloadImpl.\n\n```go\nfunc GetRenderColName(\n\tctx context.Context,\n\tsearchPath SearchPath,\n\ttarget SelectExpr,\n\tfuncResolver FunctionReferenceResolver,\n) (string, error)\n```\nGetRenderColName computes a name for a result column. A name specified with AS takes priority, otherwise a name is derived from the expression.\n\nThis function is meant to be used on untransformed syntax trees.\n\nThe algorithm is borrowed from FigureColName() in PostgreSQL 10, to be found in src/backend/parser/parse\\_target.c. We reuse this algorithm to provide names more compatible with PostgreSQL.\n\n```go\nfunc GetStaticallyKnownType(ref ResolvableTypeReference) (typ *types.T, ok bool)\n```\nGetStaticallyKnownType possibly promotes a ResolvableTypeReference into a \\*types.T if the reference is a statically known type. It is only safe to access the returned type if ok is true.\n\n```go\nfunc GetTableType(isSequence bool, isView bool, isMaterialized bool) string\n```\nGetTableType returns a string representing the type of table the command is operating on. It is assumed if the table is not a sequence or a view, then it is a regular table.\n\n```go\nfunc HasReturningClause(clause ReturningClause) bool\n```\nHasReturningClause determines if a ReturningClause is present, given a variant of the ReturningClause interface.\n\n```go\nfunc InferBinaryType(bin treebin.BinaryOperatorSymbol, leftType, rightType *types.T) *types.T\n```\nInferBinaryType infers the return type of a binary expression, given the type of its inputs.\n\n```go\nfunc InferTypes(vals []string) []types.Family\n```\nInferTypes takes a list of strings produced by ParsePath and returns a slice of datum types inferred from the strings. Type DInt will be used if possible, otherwise DString. For example, a vals slice \\[\"1\", \"foo\"] will give a types slice \\[Dint, DString].\n\n```go\nfunc IntToOid(i DInt) (oid.Oid, error)\n```\nIntToOid is a helper that turns a DInt into an oid.Oid and checks that the value is in range.\n\n```go\nfunc IsAllowedLDRSchemaChange(n Statement, virtualColNames []string, kvWriterEnabled bool) bool\n```\nIsAllowedLDRSchemaChange returns true if the schema change statement is allowed to occur while the table is being referenced by a logical data replication job as a destination table.\n\n```go\nfunc IsInParamClass(class RoutineParamClass) bool\n```\nIsInParamClass returns true if the given parameter class specifies an input parameter (i.e. either unspecified, IN or, INOUT).\n\n```go\nfunc IsOutParamClass(class RoutineParamClass) bool\n```\nIsOutParamClass returns true if the given parameter class specifies an output parameter (i.e. either OUT or INOUT).\n\n```go\nfunc IsReferenceSerialType(ref ResolvableTypeReference) bool\n```\nIsReferenceSerialType returns whether the input reference is a known serial type. It should only be used during parsing.\n\n```go\nfunc IsSetOrResetSchemaLocked(n Statement) bool\n```\nIsSetOrResetSchemaLocked returns true if \\`n\\` contains a command to set/reset \"schema\\_locked\" storage parameter.\n\n```go\nfunc IsUnaryComplement(op Operator) bool\n```\nIsUnaryComplement returns whether op is a unary complement operator.\n\n```go\nfunc LimitDecimalWidth(d *apd.Decimal, precision, scale int) error\n```\nLimitDecimalWidth limits d's precision (total number of digits) and scale (number of digits after the decimal point). Note that this any limiting will modify the decimal in-place.\n\n```go\nfunc MakeParseError(s string, typ *types.T, err error) error\n```\nMakeParseError returns a parse error using the provided string and type. An optional error can be provided, which will be appended to the end of the error string.\n\n```go\nfunc MaxDistinctCount(\n\tctx context.Context, evalCtx CompareContext, first, last Datum,\n) (_ int64, ok bool)\n```\nMaxDistinctCount returns the maximum number of distinct values between the given datums (inclusive). This is possible if:\n\n\ta. the types of the datums are equivalent and countable, or\n\tb. the datums have the same value (in which case the distinct count is 1).\n\nIf neither of these conditions hold, MaxDistinctCount returns ok=false. Additionally, it must be the case that first \\\u003c= last, otherwise MaxDistinctCount returns ok=false.\n\n```go\nfunc MemoizeComparisonExprOp(node *ComparisonExpr)\n```\nMemoizeComparisonExprOp populates the Op field of the ComparisonExpr.\n\nTODO(ajwerner): It feels dangerous to leave this to the caller to set. Should we rework the construction and access to the underlying Op to enforce safety?\n\n```go\nfunc MockNameTypes(types map[string]*types.T) func()\n```\nMockNameTypes populates presetTypesForTesting for a test.\n\n```go\nfunc MustBeStaticallyKnownType(ref ResolvableTypeReference) *types.T\n```\nMustBeStaticallyKnownType does the same thing as GetStaticallyKnownType but panics in the case that the reference is not statically known. This function is intended to be used in tests or in cases where it is not possible to have any unresolved type references.\n\n```go\nfunc NameString(s string) string\n```\nNameString escapes an identifier stored in a string to a SQL identifier.\n\n```go\nfunc NameStringP(s *string) string\n```\nNameStringP escapes an identifier stored in a heap string to a SQL identifier, avoiding a heap allocation.\n\n```go\nfunc NewAggInAggError() error\n```\nNewAggInAggError creates an error for the case when an aggregate function is contained within another aggregate function.\n\n```go\nfunc NewCannotMixBitArraySizesError(op string) error\n```\nNewCannotMixBitArraySizesError creates an error for the case when a bitwise aggregate function is called on bit arrays with different sizes.\n\n```go\nfunc NewContextDependentOpsNotAllowedError(context string) error\n```\nNewContextDependentOpsNotAllowedError creates an error for the case when context-dependent operators are not allowed in the given context.\n\n```go\nfunc NewInvalidFunctionUsageError(class FunctionClass, context string) error\n```\nNewInvalidFunctionUsageError creates a rejection for a special function.\n\n```go\nfunc NewInvalidNestedSRFError(context string) error\n```\nNewInvalidNestedSRFError creates a rejection for a nested SRF.\n\n```go\nfunc NewNoValueProvidedForPlaceholderErr(pIdx PlaceholderIdx) error\n```\nNewNoValueProvidedForPlaceholderErr constructs an error indicating a missing placeholder value.\n\n```go\nfunc NewTimestampExceedsBoundsError(t time.Time) error\n```\nNewTimestampExceedsBoundsError returns a new \"exceeds supported timestamp bounds\" error for the given timestamp, with the correct pgcode.\n\n```go\nfunc NewTypeIsNotCompositeError(resolvedType *types.T) error\n```\nNewTypeIsNotCompositeError generates an error suitable to report when a ColumnAccessExpr or TupleStar is applied to a non-composite type.\n\n```go\nfunc OperatorIsImmutable(expr Expr) bool\n```\nOperatorIsImmutable returns true if the given expression corresponds to a constant operator. Note importantly that this will return true for all expr types other than FuncExpr, CastExpr, UnaryExpr, BinaryExpr, and ComparisonExpr. It does not do any recursive searching.\n\n```go\nfunc PGWireFormatTime(t timeofday.TimeOfDay, tmp []byte) []byte\n```\nPGWireFormatTime formats t into a format lib/pq understands, appending to the provided tmp buffer and reallocating if needed. The function will then return the resulting buffer.\n\n```go\nfunc PGWireFormatTimeTZ(t timetz.TimeTZ, tmp []byte) []byte\n```\nPGWireFormatTimeTZ formats t into a format lib/pq understands, appending to the provided tmp buffer and reallocating if needed. The function will then return the resulting buffer.\n\n```go\nfunc PGWireFormatTimestamp(t time.Time, offset *time.Location, tmp []byte) (b []byte)\n```\nPGWireFormatTimestamp formats t into a format lib/pq understands. If offset is not nil, it will not display the timezone offset.\n\n```go\nfunc PGWireTypeSize(t *types.T) int\n```\nPGWireTypeSize is the size of the type as reported in pg\\_catalog and over the wire protocol.\n\n```go\nfunc ParseAndRequireStringHandler(\n\tt *types.T, s string, ctx ParseContext, vh ValueHandler, ph *pgdate.ParseHelper,\n) (err error)\n```\nParseAndRequireStringHandler parses a string and passes values supported by the vector engine directly to a ValueHandler. Other types are handled by ParseAndRequireString.\n\n```go\nfunc ParseBool(s string) (bool, error)\n```\nParseBool parses and returns the boolean value represented by the provided string, or an error if parsing is unsuccessful. See [https://github.com/postgres/postgres/blob/90627cf98a8e7d0531789391fd798c9bfcc3bc1a/src/backend/utils/adt/bool.c#L36](https://github.com/postgres/postgres/blob/90627cf98a8e7d0531789391fd798c9bfcc3bc1a/src/backend/utils/adt/bool.c#L36)\n\n```go\nfunc ParseIntervalWithTypeMetadata(\n\tstyle duration.IntervalStyle, s string, itm types.IntervalTypeMetadata,\n) (duration.Duration, error)\n```\nParseIntervalWithTypeMetadata is the same as ParseDIntervalWithTypeMetadata but returns a duration.Duration.\n\n```go\nfunc ParsePath(str string) []string\n```\nParsePath splits a string of the form \"/foo/bar\" into strings \\[\"foo\", \"bar\"]. An empty string is allowed, otherwise the string must start with /.\n\n```go\nfunc ParseTimestampTZ(\n\tctx ParseContext, s string, precision time.Duration,\n) (_ time.Time, dependsOnContext bool, _ error)\n```\nParseTimestampTZ parses and returns the time.Time value represented by the provided string in the provided location, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc PgwireFormatBool(d bool) byte\n```\nPgwireFormatBool returns a single byte representing a boolean according to pgwire encoding.\n\n```go\nfunc PgwireFormatFloat(\n\tbuf []byte, fl float64, conv sessiondatapb.DataConversionConfig, floatTyp *types.T,\n) []byte\n```\nPgwireFormatFloat returns a \\[]byte representing a float according to pgwire encoding. The result is appended to the given buffer.\n\n```go\nfunc Pretty(stmt NodeFormatter) (string, error)\n```\nPretty pretty prints stmt with default options.\n\n```go\nfunc ProcessPlaceholderAnnotations(\n\tsemaCtx *SemaContext, stmt Statement, typeHints PlaceholderTypes,\n) error\n```\nProcessPlaceholderAnnotations performs an order-independent global traversal of the provided Statement, annotating all placeholders with a type in either of the following situations:\n\n  - the placeholder is the subject of an explicit type annotation in at least one of its occurrences. If it is subject to multiple explicit type annotations where the types are not all in agreement, or if the placeholder already has a type hint in the placeholder map which conflicts with the explicit type annotation type, an error will be thrown.\n\n  - the placeholder is the subject to a cast of the same type in all occurrences of the placeholder. If the placeholder is subject to casts of multiple types, or if it has occurrences without a cast, no error will be thrown but the type will not be inferred. If the placeholder already has a type hint, that type will be kept regardless of any casts.\n\nSee docs/RFCS/20160203\\_typing.md for more details on placeholder typing (in particular section \"First pass: placeholder annotations\").\n\nThe typeHints slice contains the client-provided hints and is populated with any newly assigned types. It is assumed to be pre-sized to the number of placeholders in the statement and is populated accordingly.\n\nTODO(nvanbenschoten): Can this visitor and map be preallocated (like normalizeVisitor)?\n\n```go\nfunc ResolveBlankPaddedChar(s string, t *types.T) string\n```\nResolveBlankPaddedChar pads the given string with spaces if blank padding is required or returns the string unmodified otherwise.\n\n```go\nfunc ResolvePolymorphicArgTypes(\n\tparamTypes ParamTypes, argTypes []*types.T, anyElemTyp *types.T, enforceConsistency bool,\n) (ok bool, numPolyParams int, _ *types.T)\n```\nResolvePolymorphicArgTypes iterates through the list of routine parameters and supplied arguments (including default expressions), and attempts to determine the concrete types for any polymorphic-typed parameters. It returns true if the supplied argument types are valid, as well as the determined element type (nil if there were no polymorphic parameters).\n\nCRDB currently supports two polymorphic types: \\* ANYELEMENT allows any argument type. \\* ANYARRAY allows only array types.\n\nThe rules for argument validity are as follows:\n\n 1. The arguments supplied for ANYELEMENT parameters must all have the same type.\n 2. The supplied types for ANYARRAY parameters must match each other, and the array \\*element\\* type must match all ANYELEMENT parameters.\n 3. NULL arguments are exempt from the above two rules. However, there must be at least one non-NULL argument in order to resolve a concrete type.\n\nanyElemTyp, if non-nil, allows the caller to pass in the expected concrete type for ANYELEMENT parameters.\n\nenforceConsistency, if true, indicates that ResolvePolymorphicArgTypes should throw a suitable error in the case of invalid arguments, rather than returning with ok=false. Note: we do this instead of always returning the error because error construction can be expensive.\n\n```go\nfunc ResolveType(\n\tctx context.Context, ref ResolvableTypeReference, resolver TypeReferenceResolver,\n) (*types.T, error)\n```\nResolveType converts a ResolvableTypeReference into a \\*types.T.\n\n```go\nfunc ReturnsAtMostOneRow(stmt Statement) bool\n```\nReturnsAtMostOneRow returns true if the statement returns either no rows or a single row.\n\n```go\nfunc Serialize(n NodeFormatter) string\n```\nSerialize pretty prints a node to a string using FmtSerializable; it is appropriate when we store expressions into strings that are stored on disk and may be later parsed back into expressions.\n\n```go\nfunc SerializeForDisplay(n NodeFormatter) string\n```\nSerializeForDisplay pretty prints a node to a string using FmtParsable. It is appropriate when printing expressions that are visible to end users.\n\n```go\nfunc StmtDebugString(stmt Statement) string\n```\nStmtDebugString generates multi-line debug strings in Go format for the expressions that are part of the given statement.\n\n```go\nfunc TestingEnableFamilyIndexHint() func()\n```\nTestingEnableFamilyIndexHint enables the use of Family index hint for tests.\n\n```go\nfunc TimeFamilyPrecisionToRoundDuration(precision int32) time.Duration\n```\nTimeFamilyPrecisionToRoundDuration takes in a type's precision, and returns the duration to use to pass into time.Truncate to truncate to that duration. Panics if the precision is not supported.\n\n```go\nfunc TimeFromDatumForComparison(\n\tctx context.Context, cmpCtx CompareContext, d Datum,\n) (time.Time, error)\n```\nTimeFromDatumForComparison gets the time from a datum object to use strictly for comparison usage.\n\n```go\nfunc ValidateRoutineOptions(options RoutineOptions, isProc bool) error\n```\nValidateRoutineOptions checks whether there are conflicting or redundant routine options in the given slice.\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 AbbreviatedGrant struct {\n\tPrivileges      privilege.List\n\tTarget          privilege.TargetObjectType\n\tGrantees        RoleSpecList\n\tWithGrantOption bool\n}\n```\nAbbreviatedGrant represents the GRANT part of an ALTER DEFAULT PRIVILEGES statement.\n\n```go\nfunc (n *AbbreviatedGrant) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AbbreviatedRevoke struct {\n\tPrivileges     privilege.List\n\tTarget         privilege.TargetObjectType\n\tGrantees       RoleSpecList\n\tGrantOptionFor bool\n}\n```\nAbbreviatedRevoke represents the REVOKE part of an ALTER DEFAULT PRIVILEGES statement.\n\n```go\nfunc (n *AbbreviatedRevoke) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AggType int\n```\nAggType specifies the type of aggregation.\n\n```go\nconst (\n\n\t// GeneralAgg is used for general-purpose aggregate functions.\n\t// array_agg(col1 ORDER BY col2)\n\tGeneralAgg AggType\n\t// OrderedSetAgg is used for ordered-set aggregate functions.\n\t// percentile_disc(fraction) WITHIN GROUP (ORDER BY col1)\n\tOrderedSetAgg\n)\n```\nFuncExpr.AggType\n\n```go\ntype AggregateOverload interface {\n\t// Aggregate is just a marker method so folks don't think you can just shove\n\t// anything here. It ought to be an eval.AggregateOverload.\n\tAggregate() // marker interface\n}\n```\nAggregateOverload is an opaque type which is used to box an eval.AggregateOverload.\n\n```go\ntype AliasClause struct {\n\tAlias Name\n\tCols  ColumnDefList\n}\n```\nAliasClause represents an alias, optionally with a column def list: \"AS name\", \"AS name(col1, col2)\", or \"AS name(col1 INT, col2 STRING)\". Note that the last form is only valid in the context of record-returning functions, which also require the last form to define their output types.\n\n```go\nfunc (f *AliasClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AliasedTableExpr struct {\n\tExpr       TableExpr\n\tIndexFlags *IndexFlags\n\tOrdinality bool\n\tLateral    bool\n\tAs         AliasClause\n}\n```\nAliasedTableExpr represents a table expression coupled with an optional alias.\n\n```go\nfunc (node *AliasedTableExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AliasedTableExpr) String() string\n```\n\n```go\nfunc (expr *AliasedTableExpr) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype AllColumnsSelector struct {\n\t// TableName corresponds to the table prefix, before the star.\n\tTableName *UnresolvedObjectName\n}\n```\nAllColumnsSelector corresponds to a selection of all columns in a table when used in a SELECT clause. (e.g. \\`table.\\*\\`).\n\n```go\nfunc (node *AllColumnsSelector) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (a *AllColumnsSelector) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (a *AllColumnsSelector) NormalizeVarName() (VarName, error)\n```\nNormalizeVarName implements the VarName interface.\n\n```go\nfunc (*AllColumnsSelector) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (a *AllColumnsSelector) String() string\n```\n\n```go\nfunc (expr *AllColumnsSelector) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (a *AllColumnsSelector) Variable()\n```\nVariable implements the VariableExpr interface.  Although, the AllColumnsSelector ought to be replaced to an IndexedVar before the points the VariableExpr interface is used.\n\n```go\nfunc (expr *AllColumnsSelector) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype AllTablesSelector struct {\n\tObjectNamePrefix\n}\n```\nAllTablesSelector corresponds to a selection of all tables in a database, e.g. when used with GRANT.\n\n```go\nfunc (at *AllTablesSelector) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (at *AllTablesSelector) NormalizeTablePattern() (TablePattern, error)\n```\nNormalizeTablePattern implements the TablePattern interface.\n\n```go\nfunc (at *AllTablesSelector) String() string\n```\n\n```go\ntype AlterBackup struct {\n\t// Backup contains the locations for the backup we seek to add new keys to.\n\tBackup Expr\n\tSubdir Expr\n\tCmds   AlterBackupCmds\n}\n```\nAlterBackup represents an ALTER BACKUP statement.\n\n```go\nfunc (node *AlterBackup) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterBackup) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterBackup) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterBackup) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterBackup) String() string\n```\n\n```go\ntype AlterBackupCmd interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nAlterBackupCmd represents a backup modification operation.\n\n```go\ntype AlterBackupCmds []AlterBackupCmd\n```\nAlterBackupCmds is an array of type AlterBackupCmd\n\n```go\nfunc (node *AlterBackupCmds) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupKMS struct {\n\tKMSInfo BackupKMS\n}\n```\nAlterBackupKMS represents a possible alter\\_backup\\_cmd option.\n\n```go\nfunc (node *AlterBackupKMS) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupSchedule struct {\n\tScheduleID uint64\n\tCmds       AlterBackupScheduleCmds\n}\n```\nAlterBackupSchedule represents an ALTER BACKUP SCHEDULE statement.\n\n```go\nfunc (node *AlterBackupSchedule) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterBackupSchedule) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterBackupSchedule) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterBackupSchedule) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterBackupSchedule) String() string\n```\n\n```go\ntype AlterBackupScheduleCmd interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nAlterBackupScheduleCmd represents a changefeed modification operation.\n\n```go\ntype AlterBackupScheduleCmds []AlterBackupScheduleCmd\n```\nAlterBackupScheduleCmds represents a list of changefeed alterations\n\n```go\nfunc (node *AlterBackupScheduleCmds) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterBackupScheduleCmds) String() string\n```\n\n```go\ntype AlterBackupScheduleNextRun struct {\n\tFull bool\n}\n```\nAlterBackupScheduleRunNow represents a RUN NOW command.\n\n```go\nfunc (node *AlterBackupScheduleNextRun) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetFullBackup struct {\n\tFullBackup FullBackupClause\n}\n```\nAlterBackupScheduleSetFullBackup represents an SET FULL BACKUP \\\u003crecurrence\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetFullBackup) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetInto struct {\n\tInto StringOrPlaceholderOptList\n}\n```\nAlterBackupScheduleSetInto represents a SET \\\u003cdestinations\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetInto) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetLabel struct {\n\tLabel Expr\n}\n```\nAlterBackupScheduleSetLabel represents an ADD \\\u003clabel\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetLabel) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetRecurring struct {\n\tRecurrence Expr\n}\n```\nAlterBackupScheduleSetRecurring represents an SET RECURRING \\\u003crecurrence\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetRecurring) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetScheduleOption struct {\n\tOption KVOption\n}\n```\nAlterBackupScheduleSetScheduleOption represents an SET SCHEDULE OPTION \\\u003ckv\\_options\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetScheduleOption) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterBackupScheduleSetWith struct {\n\tWith *BackupOptions\n}\n```\nAlterBackupScheduleSetWith represents an SET \\\u003coptions\u003e command\n\n```go\nfunc (node *AlterBackupScheduleSetWith) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterChangefeed struct {\n\tJobs Expr\n\tCmds AlterChangefeedCmds\n}\n```\nAlterChangefeed represents an ALTER CHANGEFEED statement.\n\n```go\nfunc (node *AlterChangefeed) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterChangefeed) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterChangefeed) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterChangefeed) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterChangefeed) String() string\n```\n\n```go\ntype AlterChangefeedAddTarget struct {\n\tTargets ChangefeedTargets\n\tOptions KVOptions\n}\n```\nAlterChangefeedAddTarget represents an ADD \\\u003ctargets\u003e command\n\n```go\nfunc (node *AlterChangefeedAddTarget) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterChangefeedCmd interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nAlterChangefeedCmd represents a changefeed modification operation.\n\n```go\ntype AlterChangefeedCmds []AlterChangefeedCmd\n```\nAlterChangefeedCmds represents a list of changefeed alterations\n\n```go\nfunc (node *AlterChangefeedCmds) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterChangefeedCmds) String() string\n```\n\n```go\ntype AlterChangefeedDropTarget struct {\n\tTargets ChangefeedTargets\n}\n```\nAlterChangefeedDropTarget represents an DROP \\\u003ctargets\u003e command\n\n```go\nfunc (node *AlterChangefeedDropTarget) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterChangefeedSetOptions struct {\n\tOptions KVOptions\n}\n```\nAlterChangefeedSetOptions represents an SET \\\u003coptions\u003e command\n\n```go\nfunc (node *AlterChangefeedSetOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterChangefeedUnsetOptions struct {\n\tOptions NameList\n}\n```\nAlterChangefeedUnsetOptions represents an UNSET \\\u003coptions\u003e command\n\n```go\nfunc (node *AlterChangefeedUnsetOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterDatabaseAddRegion struct {\n\tName        Name\n\tRegion      Name\n\tIfNotExists bool\n}\n```\nAlterDatabaseAddRegion represents a ALTER DATABASE ADD REGION statement.\n\n```go\nfunc (node *AlterDatabaseAddRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseAddRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseAddRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseAddRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseAddRegion) String() string\n```\n\n```go\ntype AlterDatabaseAddSuperRegion struct {\n\tDatabaseName    Name\n\tSuperRegionName Name\n\tRegions         []Name\n}\n```\nAlterDatabaseAddSuperRegion represents a ALTER DATABASE ADD SUPER REGION ... statement.\n\n```go\nfunc (node *AlterDatabaseAddSuperRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseAddSuperRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseAddSuperRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseAddSuperRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseAddSuperRegion) String() string\n```\n\n```go\ntype AlterDatabaseAlterSuperRegion struct {\n\tDatabaseName    Name\n\tSuperRegionName Name\n\tRegions         []Name\n}\n```\nAlterDatabaseAlterSuperRegion represents a ALTER DATABASE ADD SUPER REGION ... statement.\n\n```go\nfunc (node *AlterDatabaseAlterSuperRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseAlterSuperRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseAlterSuperRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseAlterSuperRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseAlterSuperRegion) String() string\n```\n\n```go\ntype AlterDatabaseDropRegion struct {\n\tName     Name\n\tRegion   Name\n\tIfExists bool\n}\n```\nAlterDatabaseDropRegion represents a ALTER DATABASE DROP REGION statement.\n\n```go\nfunc (node *AlterDatabaseDropRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseDropRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseDropRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseDropRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseDropRegion) String() string\n```\n\n```go\ntype AlterDatabaseDropSecondaryRegion struct {\n\tDatabaseName Name\n\tIfExists     bool\n}\n```\nAlterDatabaseDropSecondaryRegion represents a ALTER DATABASE DROP SECONDARY REGION statement.\n\n```go\nfunc (node *AlterDatabaseDropSecondaryRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseDropSecondaryRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseDropSecondaryRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseDropSecondaryRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseDropSecondaryRegion) String() string\n```\n\n```go\ntype AlterDatabaseDropSuperRegion struct {\n\tDatabaseName    Name\n\tSuperRegionName Name\n}\n```\nAlterDatabaseDropSuperRegion represents a ALTER DATABASE DROP SUPER REGION ... statement.\n\n```go\nfunc (node *AlterDatabaseDropSuperRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseDropSuperRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseDropSuperRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseDropSuperRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseDropSuperRegion) String() string\n```\n\n```go\ntype AlterDatabaseOwner struct {\n\tName  Name\n\tOwner RoleSpec\n}\n```\nAlterDatabaseOwner represents a ALTER DATABASE OWNER TO statement.\n\n```go\nfunc (node *AlterDatabaseOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseOwner) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseOwner) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseOwner) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseOwner) String() string\n```\n\n```go\ntype AlterDatabasePlacement struct {\n\tName      Name\n\tPlacement DataPlacement\n}\n```\nAlterDatabasePlacement represents a ALTER DATABASE PLACEMENT statement.\n\n```go\nfunc (node *AlterDatabasePlacement) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabasePlacement) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabasePlacement) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabasePlacement) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabasePlacement) String() string\n```\n\n```go\ntype AlterDatabasePrimaryRegion struct {\n\tName          Name\n\tPrimaryRegion Name\n}\n```\nAlterDatabasePrimaryRegion represents a ALTER DATABASE PRIMARY REGION ... statement.\n\n```go\nfunc (node *AlterDatabasePrimaryRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabasePrimaryRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabasePrimaryRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabasePrimaryRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabasePrimaryRegion) String() string\n```\n\n```go\ntype AlterDatabaseSecondaryRegion struct {\n\tDatabaseName    Name\n\tSecondaryRegion Name\n}\n```\nAlterDatabaseSecondaryRegion represents a ALTER DATABASE SET SECONDARY REGION ... statement.\n\n```go\nfunc (node *AlterDatabaseSecondaryRegion) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseSecondaryRegion) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseSecondaryRegion) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseSecondaryRegion) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseSecondaryRegion) String() string\n```\n\n```go\ntype AlterDatabaseSetZoneConfigExtension struct {\n\t// ALTER DATABASE ...\n\tDatabaseName Name\n\t// ALTER LOCALITY ...\n\tLocalityLevel LocalityLevel\n\tRegionName    Name\n\t// CONFIGURE ZONE ...\n\tZoneConfigSettings\n}\n```\nAlterDatabaseSetZoneConfigExtension represents a ALTER DATABASE ... ALTER LOCALITY ... CONFIGURE ZONE ... statement.\n\n```go\nfunc (node *AlterDatabaseSetZoneConfigExtension) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseSetZoneConfigExtension) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseSetZoneConfigExtension) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseSetZoneConfigExtension) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseSetZoneConfigExtension) String() string\n```\n\n```go\ntype AlterDatabaseSurvivalGoal struct {\n\tName         Name\n\tSurvivalGoal SurvivalGoal\n}\n```\nAlterDatabaseSurvivalGoal represents a ALTER DATABASE SURVIVE ... statement.\n\n```go\nfunc (node *AlterDatabaseSurvivalGoal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDatabaseSurvivalGoal) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDatabaseSurvivalGoal) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDatabaseSurvivalGoal) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDatabaseSurvivalGoal) String() string\n```\n\n```go\ntype AlterDefaultPrivileges struct {\n\tRoles RoleSpecList\n\t// True if `ALTER DEFAULT PRIVILEGES FOR ALL ROLES` is executed.\n\tForAllRoles bool\n\t// If Schema is not specified, ALTER DEFAULT PRIVILEGES is being\n\t// run on the current database.\n\tSchemas ObjectNamePrefixList\n\n\t// Database is only used when converting a granting / revoking incompatible\n\t// database privileges to an alter default privileges statement.\n\t// If it is not set, the current database is used.\n\tDatabase *Name\n\n\t// Only one of Grant or Revoke should be set. IsGrant is used to determine\n\t// which one is set.\n\tIsGrant bool\n\tGrant   AbbreviatedGrant\n\tRevoke  AbbreviatedRevoke\n}\n```\nAlterDefaultPrivileges represents an ALTER DEFAULT PRIVILEGES statement.\n\n```go\nfunc (n *AlterDefaultPrivileges) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterDefaultPrivileges) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterDefaultPrivileges) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterDefaultPrivileges) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterDefaultPrivileges) String() string\n```\n\n```go\ntype AlterFunctionDepExtension struct {\n\tFunction  RoutineObj\n\tRemove    bool\n\tExtension Name\n}\n```\nAlterFunctionDepExtension represents the ALTER FUNCTION...DEPENDS ON statement.\n\n```go\nfunc (node *AlterFunctionDepExtension) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterFunctionDepExtension) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterFunctionDepExtension) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterFunctionDepExtension) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterFunctionDepExtension) String() string\n```\n\n```go\ntype AlterFunctionOptions struct {\n\tFunction RoutineObj\n\tOptions  RoutineOptions\n}\n```\nAlterFunctionOptions represents a ALTER FUNCTION...action statement.\n\n```go\nfunc (node *AlterFunctionOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterFunctionOptions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterFunctionOptions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterFunctionOptions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterFunctionOptions) String() string\n```\n\n```go\ntype AlterIndex struct {\n\tIfExists bool\n\tIndex    TableIndexName\n\tCmds     AlterIndexCmds\n}\n```\nAlterIndex represents an ALTER INDEX statement.\n\n```go\nfunc (node *AlterIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterIndex) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterIndex) String() string\n```\n\n```go\ntype AlterIndexCmd interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nAlterIndexCmd represents an index modification operation.\n\n```go\ntype AlterIndexCmds []AlterIndexCmd\n```\nAlterIndexCmds represents a list of index alterations.\n\n```go\nfunc (node *AlterIndexCmds) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterIndexPartitionBy struct {\n\t*PartitionByIndex\n}\n```\nAlterIndexPartitionBy represents an ALTER INDEX PARTITION BY command.\n\n```go\nfunc (node *AlterIndexPartitionBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterIndexVisible struct {\n\tIndex        TableIndexName\n\tInvisibility IndexInvisibility\n\tIfExists     bool\n}\n```\nAlterIndexVisible represents a ALTER INDEX ... \\[VISIBLE | NOT VISIBLE] statement.\n\n```go\nfunc (node *AlterIndexVisible) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterIndexVisible) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterIndexVisible) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterIndexVisible) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterIndexVisible) String() string\n```\n\n```go\ntype AlterJobOwner struct {\n\tJob   Expr\n\tOwner RoleSpec\n}\n```\nAlterJobOwner represents an ALTER JOB OWNER TO statement.\n\n```go\nfunc (n *AlterJobOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterJobOwner) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterJobOwner) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterJobOwner) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterJobOwner) String() string\n```\n\n```go\ntype AlterPolicy struct {\n\tPolicyName    Name\n\tTableName     *UnresolvedObjectName\n\tNewPolicyName Name\n\tRoles         RoleSpecList\n\tExprs         PolicyExpressions\n}\n```\nAlterPolicy is a tree struct for the ALTER POLICY DDL statement\n\n```go\nfunc (node *AlterPolicy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterPolicy) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterPolicy) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterPolicy) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterPolicy) String() string\n```\n\n```go\ntype AlterRole struct {\n\tName      RoleSpec\n\tIfExists  bool\n\tIsRole    bool\n\tKVOptions KVOptions\n}\n```\nAlterRole represents an \\`ALTER ROLE ... WITH options\\` statement.\n\n```go\nfunc (node *AlterRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterRole) String() string\n```\n\n```go\ntype AlterRoleSet struct {\n\tRoleName     RoleSpec\n\tIfExists     bool\n\tIsRole       bool\n\tAllRoles     bool\n\tDatabaseName Name\n\tSetOrReset   *SetVar\n}\n```\nAlterRoleSet represents an \\`ALTER ROLE ... SET\\` statement.\n\n```go\nfunc (node *AlterRoleSet) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterRoleSet) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterRoleSet) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterRoleSet) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterRoleSet) String() string\n```\n\n```go\ntype AlterRoutineRename struct {\n\tFunction  RoutineObj\n\tNewName   Name\n\tProcedure bool\n}\n```\nAlterRoutineRename represents a ALTER FUNCTION...RENAME or ALTER PROCEDURE...RENAME statement.\n\n```go\nfunc (node *AlterRoutineRename) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterRoutineRename) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineRename) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterRoutineRename) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineRename) String() string\n```\n\n```go\ntype AlterRoutineSetOwner struct {\n\tFunction  RoutineObj\n\tNewOwner  RoleSpec\n\tProcedure bool\n}\n```\nAlterRoutineSetOwner represents the ALTER FUNCTION...OWNER TO or ALTER PROCEDURE...OWNER TO statement.\n\n```go\nfunc (node *AlterRoutineSetOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterRoutineSetOwner) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineSetOwner) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterRoutineSetOwner) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineSetOwner) String() string\n```\n\n```go\ntype AlterRoutineSetSchema struct {\n\tFunction      RoutineObj\n\tNewSchemaName Name\n\tProcedure     bool\n}\n```\nAlterRoutineSetSchema represents a ALTER FUNCTION...SET SCHEMA or ALTER PROCEDURE...SET SCHEMA statement.\n\n```go\nfunc (node *AlterRoutineSetSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterRoutineSetSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineSetSchema) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterRoutineSetSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterRoutineSetSchema) String() string\n```\n\n```go\ntype AlterSchema struct {\n\tSchema ObjectNamePrefix\n\tCmd    AlterSchemaCmd\n}\n```\nAlterSchema represents an ALTER SCHEMA statement.\n\n```go\nfunc (node *AlterSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterSchema) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*AlterSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterSchema) String() string\n```\n\n```go\ntype AlterSchemaCmd interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nAlterSchemaCmd represents a schema modification operation.\n\n```go\ntype AlterSchemaOwner struct {\n\tOwner RoleSpec\n}\n```\nAlterSchemaOwner represents an ALTER SCHEMA OWNER TO command.\n\n```go\nfunc (node *AlterSchemaOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterSchemaRename struct {\n\tNewName Name\n}\n```\nAlterSchemaRename represents an ALTER SCHEMA RENAME command.\n\n```go\nfunc (node *AlterSchemaRename) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AlterSequence struct {\n\tIfExists bool\n\tName     *UnresolvedObjectName\n\tOptions  SequenceOptions\n}\n```\nAlterSequence represents an ALTER SEQUENCE statement, except in the case of ALTER SEQUENCE \\\u003cseqName\u003e RENAME TO \\\u003cnewSeqName\u003e, which is represented by a RenameTable node.\n\n```go\nfunc (node *AlterSequence) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterSequence) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterSequence) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterSequence) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterSequence) String() string\n```\n\n```go\ntype AlterTable struct {\n\tIfExists bool\n\tTable    *UnresolvedObjectName\n\tCmds     AlterTableCmds\n}\n```\nAlterTable represents an ALTER TABLE statement.\n\n```go\nfunc (node *AlterTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTable) HoistAddColumnConstraints(onHoistedFKConstraint func())\n```\nHoistAddColumnConstraints converts column constraints in ADD COLUMN commands, stored in node.Cmds, into top-level commands to add those constraints. Currently, this only applies to checks. For example, the ADD COLUMN in\n\n\tALTER TABLE t ADD COLUMN a INT CHECK (a \u003c 1)\n\nis transformed into two commands, as in\n\n\tALTER TABLE t ADD COLUMN a INT, ADD CONSTRAINT check_a CHECK (a \u003c 1)\n\n(with an auto-generated name).\n\nNote that some SQL databases require that a constraint attached to a column to refer only to the column it is attached to. We follow Postgres' behavior, however, in omitting this restriction by blindly hoisting all column constraints. For example, the following statement is accepted in CockroachDB and Postgres, but not necessarily other SQL databases:\n\n\tALTER TABLE t ADD COLUMN a INT CHECK (a \u003c b)\n\n```go\nfunc (*AlterTable) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *AlterTable) String() string\n```\n\n```go\ntype AlterTableAddColumn struct {\n\tIfNotExists bool\n\tColumnDef   *ColumnTableDef\n}\n```\nAlterTableAddColumn represents an ADD COLUMN command.\n\n```go\nfunc (node *AlterTableAddColumn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterTableAddColumn) String() string\n```\n\n```go\nfunc (node *AlterTableAddColumn) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableAddConstraint struct {\n\tConstraintDef      ConstraintTableDef\n\tValidationBehavior ValidationBehavior\n}\n```\nAlterTableAddConstraint represents an ADD CONSTRAINT command.\n\n```go\nfunc (node *AlterTableAddConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterTableAddConstraint) String() string\n```\n\n```go\nfunc (node *AlterTableAddConstraint) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableAddIdentity struct {\n\tColumn        Name\n\tQualification ColumnQualification\n}\n```\nAlterTableAddIdentity represents commands to alter a column to an identity.\n\n```go\nfunc (node *AlterTableAddIdentity) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableAddIdentity) GetColumn() Name\n```\nGetColumn implemnets the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableAddIdentity) String() string\n```\n\n```go\nfunc (node *AlterTableAddIdentity) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableAlterColumnType struct {\n\tCollation string\n\tColumn    Name\n\tToType    ResolvableTypeReference\n\tUsing     Expr\n}\n```\nAlterTableAlterColumnType represents an ALTER TABLE ALTER COLUMN TYPE command.\n\n```go\nfunc (node *AlterTableAlterColumnType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableAlterColumnType) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableAlterColumnType) String() string\n```\n\n```go\nfunc (node *AlterTableAlterColumnType) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableAlterPrimaryKey struct {\n\tColumns       IndexElemList\n\tSharded       *ShardedIndexDef\n\tName          Name\n\tStorageParams StorageParams\n}\n```\nAlterTableAlterPrimaryKey represents an ALTER TABLE ALTER PRIMARY KEY command.\n\n```go\nfunc (node *AlterTableAlterPrimaryKey) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableAlterPrimaryKey) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableCmd interface {\n\tNodeFormatter\n\t// TelemetryName returns the counter name to use for telemetry purposes.\n\tTelemetryName() string\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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterTableCmds) String() string\n```\n\n```go\ntype AlterTableDropColumn struct {\n\tIfExists     bool\n\tColumn       Name\n\tDropBehavior DropBehavior\n}\n```\nAlterTableDropColumn represents a DROP COLUMN command.\n\n```go\nfunc (node *AlterTableDropColumn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterTableDropColumn) String() string\n```\n\n```go\nfunc (node *AlterTableDropColumn) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableDropConstraint struct {\n\tIfExists     bool\n\tConstraint   Name\n\tDropBehavior DropBehavior\n}\n```\nAlterTableDropConstraint represents a DROP CONSTRAINT command.\n\n```go\nfunc (node *AlterTableDropConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *AlterTableDropConstraint) String() string\n```\n\n```go\nfunc (node *AlterTableDropConstraint) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableDropIdentity struct {\n\tColumn   Name\n\tIfExists bool\n}\n```\nAlterTableDropIdentity represents an ALTER COLUMN DROP IDENTITY \\[ IF EXISTS ].\n\n```go\nfunc (node *AlterTableDropIdentity) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableDropIdentity) GetColumn() Name\n```\nGetColumn implemnets the ColumnMutationCmd interface.\n\n```go\nfunc (node *AlterTableDropIdentity) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableDropNotNull struct {\n\tColumn Name\n}\n```\nAlterTableDropNotNull represents an ALTER COLUMN DROP NOT NULL command.\n\n```go\nfunc (node *AlterTableDropNotNull) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableDropNotNull) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableDropNotNull) String() string\n```\n\n```go\nfunc (node *AlterTableDropNotNull) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableDropStored struct {\n\tColumn Name\n}\n```\nAlterTableDropStored represents an ALTER COLUMN DROP STORED command to remove the computed-ness from a column.\n\n```go\nfunc (node *AlterTableDropStored) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableDropStored) GetColumn() Name\n```\nGetColumn implemnets the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableDropStored) String() string\n```\n\n```go\nfunc (node *AlterTableDropStored) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableIdentity struct {\n\tColumn     Name\n\tSeqOptions SequenceOptions\n}\n```\nAlterTableIdentity represents commands to alter a column identity sequence options.\n\n```go\nfunc (node *AlterTableIdentity) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableIdentity) GetColumn() Name\n```\nGetColumn implemnets the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableIdentity) String() string\n```\n\n```go\nfunc (node *AlterTableIdentity) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableInjectStats struct {\n\tStats Expr\n}\n```\nAlterTableInjectStats represents an ALTER TABLE INJECT STATISTICS statement.\n\n```go\nfunc (node *AlterTableInjectStats) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableInjectStats) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableLocality struct {\n\tName     *UnresolvedObjectName\n\tIfExists bool\n\tLocality *Locality\n}\n```\nAlterTableLocality represents an ALTER TABLE LOCALITY command.\n\n```go\nfunc (node *AlterTableLocality) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTableLocality) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTableLocality) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTableLocality) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTableLocality) String() string\n```\n\n```go\ntype AlterTableOwner struct {\n\tName           *UnresolvedObjectName\n\tOwner          RoleSpec\n\tIfExists       bool\n\tIsView         bool\n\tIsMaterialized bool\n\tIsSequence     bool\n}\n```\nAlterTableOwner represents an ALTER TABLE OWNER TO command.\n\n```go\nfunc (node *AlterTableOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTableOwner) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTableOwner) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTableOwner) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTableOwner) String() string\n```\n\n```go\nfunc (node *AlterTableOwner) TelemetryName() string\n```\nTelemetryName returns the telemetry counter to increment when this command is used.\n\n```go\ntype AlterTablePartitionByTable struct {\n\t*PartitionByTable\n}\n```\nAlterTablePartitionByTable represents an ALTER TABLE PARTITION \\[ALL] BY command.\n\n```go\nfunc (node *AlterTablePartitionByTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTablePartitionByTable) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableRenameColumn struct {\n\tColumn  Name\n\tNewName Name\n}\n```\nAlterTableRenameColumn represents an ALTER TABLE RENAME \\[COLUMN] command.\n\n```go\nfunc (node *AlterTableRenameColumn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableRenameColumn) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableRenameConstraint struct {\n\tConstraint Name\n\tNewName    Name\n}\n```\nAlterTableRenameConstraint represents an ALTER TABLE RENAME CONSTRAINT command.\n\n```go\nfunc (node *AlterTableRenameConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableRenameConstraint) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableResetStorageParams struct {\n\tParams []string\n}\n```\nAlterTableResetStorageParams represents a ALTER TABLE RESET command.\n\n```go\nfunc (node *AlterTableResetStorageParams) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableResetStorageParams) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetAudit struct {\n\tMode AuditMode\n}\n```\nAlterTableSetAudit represents an ALTER TABLE AUDIT SET statement.\n\n```go\nfunc (node *AlterTableSetAudit) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetAudit) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetDefault struct {\n\tColumn  Name\n\tDefault Expr\n}\n```\nAlterTableSetDefault represents an ALTER COLUMN SET DEFAULT or DROP DEFAULT command.\n\n```go\nfunc (node *AlterTableSetDefault) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetDefault) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableSetDefault) String() string\n```\n\n```go\nfunc (node *AlterTableSetDefault) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetIdentity struct {\n\tColumn                  Name\n\tGeneratedAsIdentityType GeneratedIdentityType\n}\n```\nAlterTableSetIdentity represents commands to alter a column identity type.\n\n```go\nfunc (node *AlterTableSetIdentity) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetIdentity) GetColumn() Name\n```\nGetColumn implemnets the ColumnMutationCmd interface.\n\n```go\nfunc (node *AlterTableSetIdentity) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetNotNull struct {\n\tColumn Name\n}\n```\nAlterTableSetNotNull represents an ALTER COLUMN SET NOT NULL command.\n\n```go\nfunc (node *AlterTableSetNotNull) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetNotNull) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableSetNotNull) String() string\n```\n\n```go\nfunc (node *AlterTableSetNotNull) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetOnUpdate struct {\n\tColumn Name\n\tExpr   Expr\n}\n```\nAlterTableSetOnUpdate represents an ALTER COLUMN ON UPDATE SET or DROP ON UPDATE command.\n\n```go\nfunc (node *AlterTableSetOnUpdate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetOnUpdate) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (node *AlterTableSetOnUpdate) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetRLSMode struct {\n\tMode TableRLSMode\n}\n```\nAlterTableSetRLSMode represents the following alter table command: {ENABLE | DISABLE | FORCE | NO FORCE} ROW LEVEL SECURITY\n\n```go\nfunc (node *AlterTableSetRLSMode) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface\n\n```go\nfunc (node *AlterTableSetRLSMode) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface\n\n```go\ntype AlterTableSetSchema struct {\n\tName           *UnresolvedObjectName\n\tSchema         Name\n\tIfExists       bool\n\tIsView         bool\n\tIsMaterialized bool\n\tIsSequence     bool\n}\n```\nAlterTableSetSchema represents an ALTER TABLE SET SCHEMA command.\n\n```go\nfunc (node *AlterTableSetSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTableSetSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *AlterTableSetSchema) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTableSetSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTableSetSchema) String() string\n```\n\n```go\nfunc (node *AlterTableSetSchema) TelemetryName() string\n```\nTelemetryName returns the telemetry counter to increment when this command is used.\n\n```go\ntype AlterTableSetStorageParams struct {\n\tStorageParams StorageParams\n}\n```\nAlterTableSetStorageParams represents a ALTER TABLE SET command.\n\n```go\nfunc (node *AlterTableSetStorageParams) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetStorageParams) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableSetVisible struct {\n\tColumn  Name\n\tVisible bool\n}\n```\nAlterTableSetVisible represents an ALTER COLUMN SET VISIBLE or NOT VISIBLE command.\n\n```go\nfunc (node *AlterTableSetVisible) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableSetVisible) GetColumn() Name\n```\nGetColumn implements the ColumnMutationCmd interface.\n\n```go\nfunc (n *AlterTableSetVisible) String() string\n```\n\n```go\nfunc (node *AlterTableSetVisible) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTableValidateConstraint struct {\n\tConstraint Name\n}\n```\nAlterTableValidateConstraint represents a VALIDATE CONSTRAINT command.\n\n```go\nfunc (node *AlterTableValidateConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTableValidateConstraint) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype AlterTenantCapability struct {\n\tTenantSpec   *TenantSpec\n\tCapabilities []TenantCapability\n\tIsRevoke     bool\n\n\tAllCapabilities bool\n}\n```\nAlterTenantCapability represents an ALTER VIRTUAL CLUSTER CAPABILITY statement.\n\n```go\nfunc (n *AlterTenantCapability) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantCapability) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantCapability) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantCapability) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantCapability) String() string\n```\n\n```go\ntype AlterTenantRename struct {\n\tTenantSpec *TenantSpec\n\n\t// For NewName we only support the name syntax, not the numeric\n\t// syntax. So we could make-do with just an Expr here. However, we\n\t// like to use TenantSpec as a container for that name because it\n\t// takes care of pretty-printing with all the special rules. See the\n\t// doc of (*TenantSpec).Format() for details.\n\tNewName *TenantSpec\n}\n```\nAlterTenantRename represents an ALTER VIRTUAL CLUSTER RENAME statement.\n\n```go\nfunc (n *AlterTenantRename) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantRename) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantRename) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantRename) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantRename) String() string\n```\n\n```go\ntype AlterTenantReplication struct {\n\tTenantSpec                  *TenantSpec\n\tCommand                     JobCommand\n\tCutover                     *ReplicationCutoverTime\n\tProducer                    bool\n\tReplicationSourceTenantName *TenantSpec\n\t// ReplicationSourceConnUri is a connection uri of the source cluster that we\n\t// are replicating data from.\n\tReplicationSourceConnUri Expr\n\n\tOptions TenantReplicationOptions\n}\n```\nAlterTenantReplication represents an ALTER VIRTUAL CLUSTER REPLICATION statement.\n\n```go\nfunc (n *AlterTenantReplication) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantReplication) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantReplication) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantReplication) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantReplication) String() string\n```\n\n```go\ntype AlterTenantReset struct {\n\tTenantSpec *TenantSpec\n\tTimestamp  Expr\n}\n```\nAlterTenantReset represents an ALTER VIRTUAL CLUSTER RESET statement.\n\n```go\nfunc (n *AlterTenantReset) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantReset) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantReset) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantReset) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantReset) String() string\n```\n\n```go\ntype AlterTenantService struct {\n\tTenantSpec *TenantSpec\n\tCommand    TenantServiceCmd\n}\n```\nAlterTenantService represents an ALTER VIRTUAL CLUSTER START/STOP SERVICE statement.\n\n```go\nfunc (n *AlterTenantService) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantService) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantService) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantService) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantService) String() string\n```\n\n```go\ntype AlterTenantSetClusterSetting struct {\n\tSetClusterSetting\n\tTenantSpec *TenantSpec\n}\n```\nAlterTenantSetClusterSetting represents an ALTER VIRTUAL CLUSTER SET CLUSTER SETTING statement.\n\n```go\nfunc (n *AlterTenantSetClusterSetting) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterTenantSetClusterSetting) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterTenantSetClusterSetting) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*AlterTenantSetClusterSetting) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterTenantSetClusterSetting) String() string\n```\n\n```go\ntype AlterType struct {\n\tType *UnresolvedObjectName\n\tCmd  AlterTypeCmd\n}\n```\nAlterType represents an ALTER TYPE statement.\n\n```go\nfunc (node *AlterType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*AlterType) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*AlterType) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*AlterType) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *AlterType) String() string\n```\n\n```go\ntype AlterTypeAddValue struct {\n\tNewVal      EnumValue\n\tIfNotExists bool\n\tPlacement   *AlterTypeAddValuePlacement\n}\n```\nAlterTypeAddValue represents an ALTER TYPE ADD VALUE command.\n\n```go\nfunc (node *AlterTypeAddValue) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeAddValue) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype AlterTypeAddValuePlacement struct {\n\tBefore      bool\n\tExistingVal EnumValue\n}\n```\nAlterTypeAddValuePlacement represents the placement clause for an ALTER TYPE ADD VALUE command (\\[BEFORE | AFTER] value).\n\n```go\ntype AlterTypeCmd interface {\n\tNodeFormatter\n\n\t// TelemetryName returns the counter name to use for telemetry purposes.\n\tTelemetryName() string\n\t// contains filtered or unexported methods\n}\n```\nAlterTypeCmd represents a type modification operation.\n\n```go\ntype AlterTypeDropValue struct {\n\tVal EnumValue\n}\n```\nAlterTypeDropValue represents an ALTER TYPE DROP VALUE command.\n\n```go\nfunc (node *AlterTypeDropValue) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeDropValue) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype AlterTypeOwner struct {\n\tOwner RoleSpec\n}\n```\nAlterTypeOwner represents an ALTER TYPE OWNER TO command.\n\n```go\nfunc (node *AlterTypeOwner) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeOwner) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype AlterTypeRename struct {\n\tNewName Name\n}\n```\nAlterTypeRename represents an ALTER TYPE RENAME command.\n\n```go\nfunc (node *AlterTypeRename) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeRename) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype AlterTypeRenameValue struct {\n\tOldVal EnumValue\n\tNewVal EnumValue\n}\n```\nAlterTypeRenameValue represents an ALTER TYPE RENAME VALUE command.\n\n```go\nfunc (node *AlterTypeRenameValue) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeRenameValue) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype AlterTypeSetSchema struct {\n\tSchema Name\n}\n```\nAlterTypeSetSchema represents an ALTER TYPE SET SCHEMA command.\n\n```go\nfunc (node *AlterTypeSetSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AlterTypeSetSchema) TelemetryName() string\n```\nTelemetryName implements the AlterTypeCmd interface.\n\n```go\ntype Analyze struct {\n\tTable TableExpr\n}\n```\nAnalyze represents an ANALYZE statement.\n\n```go\nfunc (node *Analyze) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Analyze) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Analyze) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Analyze) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Analyze) String() string\n```\n\n```go\ntype AndExpr struct {\n\tLeft, Right Expr\n\t// contains filtered or unexported fields\n}\n```\nAndExpr represents an AND expression.\n\n```go\nfunc NewTypedAndExpr(left, right TypedExpr) *AndExpr\n```\nNewTypedAndExpr returns a new AndExpr that is verified to be well-typed.\n\n```go\nfunc (node *AndExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *AndExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta AndExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *AndExpr) String() string\n```\n\n```go\nfunc (expr *AndExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *AndExpr) TypedLeft() TypedExpr\n```\nTypedLeft returns the AndExpr's left expression as a TypedExpr.\n\n```go\nfunc (node *AndExpr) TypedRight() TypedExpr\n```\nTypedRight returns the AndExpr's right expression as a TypedExpr.\n\n```go\nfunc (expr *AndExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype AnnotateTypeExpr struct {\n\tExpr Expr\n\tType ResolvableTypeReference\n\n\tSyntaxMode annotateSyntaxMode\n}\n```\nAnnotateTypeExpr represents a ANNOTATE\\_TYPE(expr, type) expression.\n\n```go\nfunc (node *AnnotateTypeExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *AnnotateTypeExpr) String() string\n```\n\n```go\nfunc (expr *AnnotateTypeExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *AnnotateTypeExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the AnnotateTypeExpr's inner expression as a TypedExpr.\n\n```go\nfunc (expr *AnnotateTypeExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype AnnotatedNode struct {\n\tAnnIdx AnnotationIdx\n}\n```\nAnnotatedNode is embedded in AST nodes that have an annotation.\n\n```go\nfunc (n AnnotatedNode) GetAnnotation(ann *Annotations) interface{}\n```\nGetAnnotation retrieves the annotation associated with this node.\n\n```go\nfunc (n AnnotatedNode) SetAnnotation(ann *Annotations, annotation interface{})\n```\nSetAnnotation sets the annotation associated with this node.\n\n```go\ntype AnnotationIdx int32\n```\nAnnotationIdx is the 1-based index of an annotation. AST nodes that can be annotated store such an index (unique within that AST).\n\n```go\nconst NoAnnotation AnnotationIdx = 0\n```\nNoAnnotation is the uninitialized annotation index.\n\n```go\ntype Annotations []interface{}\n```\nAnnotations is a container for AST annotations.\n\n```go\nfunc MakeAnnotations(numAnnotations AnnotationIdx) Annotations\n```\nMakeAnnotations allocates an annotations container of the given size.\n\n```go\nfunc (a *Annotations) Get(idx AnnotationIdx) interface{}\n```\nGet an annotation from the container.\n\n```go\nfunc (a *Annotations) Set(idx AnnotationIdx, annotation interface{})\n```\nSet an annotation in the container.\n\n```go\ntype AppendToMaybeNullArrayOp struct {\n\tTyp *types.T\n}\n```\nAppendToMaybeNullArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *AppendToMaybeNullArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype Array struct {\n\tExprs Exprs\n\t// contains filtered or unexported fields\n}\n```\nArray represents an array constructor.\n\n```go\nfunc NewTypedArray(typedExprs TypedExprs, typ *types.T) *Array\n```\nNewTypedArray returns an Array that is well-typed.\n\n```go\nfunc (node *Array) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *Array) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta Array) ResolvedType() *types.T\n```\n\n```go\nfunc (node *Array) String() string\n```\n\n```go\nfunc (expr *Array) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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 ArrayFlatten struct {\n\tSubquery Expr\n\t// contains filtered or unexported fields\n}\n```\nArrayFlatten represents a subquery array constructor.\n\n```go\nfunc NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten\n```\nNewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.\n\n```go\nfunc (node *ArrayFlatten) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *ArrayFlatten) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta ArrayFlatten) ResolvedType() *types.T\n```\n\n```go\nfunc (node *ArrayFlatten) String() string\n```\n\n```go\nfunc (expr *ArrayFlatten) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *ArrayFlatten) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ArraySubscript struct {\n\tBegin Expr\n\tEnd   Expr\n\tSlice bool\n}\n```\nArraySubscript corresponds to the syntax \\`\\\u003cname\u003e\\[ ... ]\\`.\n\n```go\nfunc (a *ArraySubscript) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ArraySubscripts []*ArraySubscript\n```\nArraySubscripts represents a sequence of one or more array subscripts.\n\n```go\nfunc (a *ArraySubscripts) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ArrayTypeReference struct {\n\tElementType ResolvableTypeReference\n}\n```\nArrayTypeReference represents an array of possibly unknown type references.\n\n```go\nfunc (node *ArrayTypeReference) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ArrayTypeReference) SQLString() string\n```\nSQLString implements the ResolvableTypeReference interface.\n\n```go\ntype AsOfClause struct {\n\tExpr Expr\n}\n```\nAsOfClause represents an as of time.\n\n```go\nfunc (a *AsOfClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype AuditMode int\n```\nAuditMode represents a table audit mode\n\n```go\nconst (\n\t// AuditModeDisable is the default mode - no audit.\n\tAuditModeDisable AuditMode = iota\n\t// AuditModeReadWrite enables audit on read or write statements.\n\tAuditModeReadWrite\n)\n```\n\n```go\nfunc (m AuditMode) String() string\n```\n\n```go\nfunc (m AuditMode) TelemetryName() string\n```\nTelemetryName returns a friendly string for use in telemetry that represents the AuditMode.\n\n```go\ntype Backup struct {\n\tTargets *BackupTargetList\n\n\t// To is set to the root directory of the backup (called the \u003cdestination\u003e in\n\t// the docs).\n\tTo StringOrPlaceholderOptList\n\n\tAsOf    AsOfClause\n\tOptions BackupOptions\n\n\t// AppendToLatest is set to true if the user creates a backup with\n\t//`BACKUP...INTO LATEST...`\n\tAppendToLatest bool\n\n\t// Subdir may be set by the parser when the SQL query is of the form `BACKUP\n\t// INTO 'subdir' IN...`. Alternatively, if a subdir was not explicitly specified\n\t// by the user, then this will be set during BACKUP planning once the destination\n\t// has been resolved.\n\tSubdir Expr\n}\n```\nBackup represents a BACKUP statement.\n\n```go\nfunc (node Backup) Coverage() DescriptorCoverage\n```\nCoverage return the coverage (all vs requested).\n\n```go\nfunc (node *Backup) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Backup) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Backup) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Backup) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Backup) String() string\n```\n\n```go\ntype BackupKMS struct {\n\tNewKMSURI StringOrPlaceholderOptList\n\tOldKMSURI StringOrPlaceholderOptList\n}\n```\nBackupKMS represents possible options used when altering a backup KMS\n\n```go\ntype BackupOptions struct {\n\tCaptureRevisionHistory          Expr\n\tIncludeAllSecondaryTenants      Expr\n\tEncryptionPassphrase            Expr\n\tDetached                        *DBool\n\tEncryptionKMSURI                StringOrPlaceholderOptList\n\tIncrementalStorage              StringOrPlaceholderOptList\n\tExecutionLocality               Expr\n\tUpdatesClusterMonitoringMetrics Expr\n}\n```\nBackupOptions describes options for the BACKUP execution.\n\n```go\nfunc (o *BackupOptions) CombineWith(other *BackupOptions) error\n```\nCombineWith merges other backup options into this backup options struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (o *BackupOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface\n\n```go\nfunc (o BackupOptions) IsDefault() bool\n```\nIsDefault returns true if this backup options struct has default value.\n\n```go\ntype BackupTargetList struct {\n\tDatabases NameList\n\tSchemas   ObjectNamePrefixList\n\tTables    TableAttrs\n\tTenantID  TenantID\n}\n```\nBackupTargetList represents a list of targets. Only one field may be non-nil.\n\n```go\nfunc (tl *BackupTargetList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Batch struct {\n\tParams []BatchParam\n}\n```\nBatch represents a BATCH clause.\n\n```go\nfunc (b *Batch) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype BatchParam interface {\n\tNodeFormatter\n}\n```\n\n```go\ntype BeginTransaction struct {\n\t// FormatWithStart says whether this statement must be formatted with\n\t// \"START\" rather than \"BEGIN\". This is needed if this statement is in a\n\t// BEGIN ATOMIC block of a procedure or function.\n\tFormatWithStart bool\n\tModes           TransactionModes\n}\n```\nBeginTransaction represents a BEGIN statement\n\n```go\nfunc (node *BeginTransaction) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*BeginTransaction) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *BeginTransaction) String() string\n```\n\n```go\ntype BinOp struct {\n\tLeftType          *types.T\n\tRightType         *types.T\n\tReturnType        *types.T\n\tCalledOnNullInput bool\n\tEvalOp            BinaryEvalOp\n\tVolatility        volatility.V\n\tOverloadPreference\n\n\tOnTypeCheck func()\n\t// contains filtered or unexported fields\n}\n```\nBinOp is a binary operator.\n\n```go\nfunc FindBinaryOverload(\n\tbin treebin.BinaryOperatorSymbol, leftType, rightType *types.T,\n) (ret *BinOp, ok bool)\n```\nFindBinaryOverload finds the correct type signature overload for the specified binary operator, given the types of its inputs. If an overload is found, FindBinaryOverload returns true, plus a pointer to the overload. If an overload is not found, FindBinaryOverload returns false.\n\n```go\ntype BinOpOverloads struct {\n\t// contains filtered or unexported fields\n}\n```\nBinOpOverloads is an overloaded set of binary operator implementations. It implements overloadSet.\n\n```go\nfunc (o *BinOpOverloads) ForEachBinOp(f func(op *BinOp) error) error\n```\nForEachBinOp iterates the BinOps in the set.\n\n```go\nfunc (o *BinOpOverloads) LookupImpl(left, right *types.T) (*BinOp, bool)\n```\nLookupImpl can be used to look up the overload which match the requested types.\n\n```go\ntype BinaryEvalOp interface {\n\tEval(context.Context, OpEvaluator, Datum, Datum) (Datum, error)\n}\n```\nBinaryEvalOp is a binary operation which can be evaluated.\n\n```go\ntype BinaryExpr struct {\n\tOperator    treebin.BinaryOperator\n\tLeft, Right Expr\n\n\tOp *BinOp\n\t// contains filtered or unexported fields\n}\n```\nBinaryExpr represents a binary value expression.\n\n```go\nfunc NewBinExprIfValidOverload(\n\top treebin.BinaryOperator, left TypedExpr, right TypedExpr,\n) *BinaryExpr\n```\nNewBinExprIfValidOverload constructs a new BinaryExpr if and only if the pair of arguments have a valid implementation for the given BinaryOperator.\n\n```go\nfunc NewTypedBinaryExpr(\n\top treebin.BinaryOperator, left, right TypedExpr, typ *types.T,\n) *BinaryExpr\n```\nNewTypedBinaryExpr returns a new BinaryExpr that is well-typed.\n\n```go\nfunc (node *BinaryExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *BinaryExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *BinaryExpr) ResolvedBinOp() *BinOp\n```\nResolvedBinOp returns the resolved binary op overload; can only be called after Resolve (which happens during TypeCheck).\n\n```go\nfunc (ta BinaryExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *BinaryExpr) String() string\n```\n\n```go\nfunc (expr *BinaryExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *BinaryExpr) TypedLeft() TypedExpr\n```\nTypedLeft returns the BinaryExpr's left expression as a TypedExpr.\n\n```go\nfunc (node *BinaryExpr) TypedRight() TypedExpr\n```\nTypedRight returns the BinaryExpr's right expression as a TypedExpr.\n\n```go\nfunc (expr *BinaryExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype BinaryOpEvaluator interface {\n\tEvalAppendToMaybeNullArrayOp(context.Context, *AppendToMaybeNullArrayOp, Datum, Datum) (Datum, error)\n\tEvalBitAndINetOp(context.Context, *BitAndINetOp, Datum, Datum) (Datum, error)\n\tEvalBitAndIntOp(context.Context, *BitAndIntOp, Datum, Datum) (Datum, error)\n\tEvalBitAndVarBitOp(context.Context, *BitAndVarBitOp, Datum, Datum) (Datum, error)\n\tEvalBitOrINetOp(context.Context, *BitOrINetOp, Datum, Datum) (Datum, error)\n\tEvalBitOrIntOp(context.Context, *BitOrIntOp, Datum, Datum) (Datum, error)\n\tEvalBitOrVarBitOp(context.Context, *BitOrVarBitOp, Datum, Datum) (Datum, error)\n\tEvalBitXorIntOp(context.Context, *BitXorIntOp, Datum, Datum) (Datum, error)\n\tEvalBitXorVarBitOp(context.Context, *BitXorVarBitOp, Datum, Datum) (Datum, error)\n\tEvalCompareBox2DOp(context.Context, *CompareBox2DOp, Datum, Datum) (Datum, error)\n\tEvalCompareScalarOp(context.Context, *CompareScalarOp, Datum, Datum) (Datum, error)\n\tEvalCompareTupleOp(context.Context, *CompareTupleOp, Datum, Datum) (Datum, error)\n\tEvalConcatArraysOp(context.Context, *ConcatArraysOp, Datum, Datum) (Datum, error)\n\tEvalConcatBytesOp(context.Context, *ConcatBytesOp, Datum, Datum) (Datum, error)\n\tEvalConcatJsonbOp(context.Context, *ConcatJsonbOp, Datum, Datum) (Datum, error)\n\tEvalConcatOp(context.Context, *ConcatOp, Datum, Datum) (Datum, error)\n\tEvalConcatStringOp(context.Context, *ConcatStringOp, Datum, Datum) (Datum, error)\n\tEvalConcatVarBitOp(context.Context, *ConcatVarBitOp, Datum, Datum) (Datum, error)\n\tEvalContainedByArrayOp(context.Context, *ContainedByArrayOp, Datum, Datum) (Datum, error)\n\tEvalContainedByJsonbOp(context.Context, *ContainedByJsonbOp, Datum, Datum) (Datum, error)\n\tEvalContainsArrayOp(context.Context, *ContainsArrayOp, Datum, Datum) (Datum, error)\n\tEvalContainsJsonbOp(context.Context, *ContainsJsonbOp, Datum, Datum) (Datum, error)\n\tEvalCosDistanceVectorOp(context.Context, *CosDistanceVectorOp, Datum, Datum) (Datum, error)\n\tEvalDistanceVectorOp(context.Context, *DistanceVectorOp, Datum, Datum) (Datum, error)\n\tEvalDivDecimalIntOp(context.Context, *DivDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalDivDecimalOp(context.Context, *DivDecimalOp, Datum, Datum) (Datum, error)\n\tEvalDivFloatOp(context.Context, *DivFloatOp, Datum, Datum) (Datum, error)\n\tEvalDivIntDecimalOp(context.Context, *DivIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalDivIntOp(context.Context, *DivIntOp, Datum, Datum) (Datum, error)\n\tEvalDivIntervalFloatOp(context.Context, *DivIntervalFloatOp, Datum, Datum) (Datum, error)\n\tEvalDivIntervalIntOp(context.Context, *DivIntervalIntOp, Datum, Datum) (Datum, error)\n\tEvalFloorDivDecimalIntOp(context.Context, *FloorDivDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalFloorDivDecimalOp(context.Context, *FloorDivDecimalOp, Datum, Datum) (Datum, error)\n\tEvalFloorDivFloatOp(context.Context, *FloorDivFloatOp, Datum, Datum) (Datum, error)\n\tEvalFloorDivIntDecimalOp(context.Context, *FloorDivIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalFloorDivIntOp(context.Context, *FloorDivIntOp, Datum, Datum) (Datum, error)\n\tEvalInTupleOp(context.Context, *InTupleOp, Datum, Datum) (Datum, error)\n\tEvalJSONAllExistsOp(context.Context, *JSONAllExistsOp, Datum, Datum) (Datum, error)\n\tEvalJSONExistsOp(context.Context, *JSONExistsOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchTextIntOp(context.Context, *JSONFetchTextIntOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchTextPathOp(context.Context, *JSONFetchTextPathOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchTextStringOp(context.Context, *JSONFetchTextStringOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchValIntOp(context.Context, *JSONFetchValIntOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchValPathOp(context.Context, *JSONFetchValPathOp, Datum, Datum) (Datum, error)\n\tEvalJSONFetchValStringOp(context.Context, *JSONFetchValStringOp, Datum, Datum) (Datum, error)\n\tEvalJSONSomeExistsOp(context.Context, *JSONSomeExistsOp, Datum, Datum) (Datum, error)\n\tEvalLShiftINetOp(context.Context, *LShiftINetOp, Datum, Datum) (Datum, error)\n\tEvalLShiftIntOp(context.Context, *LShiftIntOp, Datum, Datum) (Datum, error)\n\tEvalLShiftVarBitIntOp(context.Context, *LShiftVarBitIntOp, Datum, Datum) (Datum, error)\n\tEvalMatchLikeOp(context.Context, *MatchLikeOp, Datum, Datum) (Datum, error)\n\tEvalMatchRegexpOp(context.Context, *MatchRegexpOp, Datum, Datum) (Datum, error)\n\tEvalMinusDateIntOp(context.Context, *MinusDateIntOp, Datum, Datum) (Datum, error)\n\tEvalMinusDateIntervalOp(context.Context, *MinusDateIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusDateOp(context.Context, *MinusDateOp, Datum, Datum) (Datum, error)\n\tEvalMinusDateTimeOp(context.Context, *MinusDateTimeOp, Datum, Datum) (Datum, error)\n\tEvalMinusDecimalIntOp(context.Context, *MinusDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalMinusDecimalOp(context.Context, *MinusDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMinusFloatOp(context.Context, *MinusFloatOp, Datum, Datum) (Datum, error)\n\tEvalMinusINetIntOp(context.Context, *MinusINetIntOp, Datum, Datum) (Datum, error)\n\tEvalMinusINetOp(context.Context, *MinusINetOp, Datum, Datum) (Datum, error)\n\tEvalMinusIntDecimalOp(context.Context, *MinusIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMinusIntOp(context.Context, *MinusIntOp, Datum, Datum) (Datum, error)\n\tEvalMinusIntervalOp(context.Context, *MinusIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusJsonbIntOp(context.Context, *MinusJsonbIntOp, Datum, Datum) (Datum, error)\n\tEvalMinusJsonbStringArrayOp(context.Context, *MinusJsonbStringArrayOp, Datum, Datum) (Datum, error)\n\tEvalMinusJsonbStringOp(context.Context, *MinusJsonbStringOp, Datum, Datum) (Datum, error)\n\tEvalMinusPGLSNDecimalOp(context.Context, *MinusPGLSNDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMinusPGLSNOp(context.Context, *MinusPGLSNOp, Datum, Datum) (Datum, error)\n\tEvalMinusPGVectorOp(context.Context, *MinusPGVectorOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimeIntervalOp(context.Context, *MinusTimeIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimeOp(context.Context, *MinusTimeOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimeTZIntervalOp(context.Context, *MinusTimeTZIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampIntervalOp(context.Context, *MinusTimestampIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampOp(context.Context, *MinusTimestampOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampTZIntervalOp(context.Context, *MinusTimestampTZIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampTZOp(context.Context, *MinusTimestampTZOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampTZTimestampOp(context.Context, *MinusTimestampTZTimestampOp, Datum, Datum) (Datum, error)\n\tEvalMinusTimestampTimestampTZOp(context.Context, *MinusTimestampTimestampTZOp, Datum, Datum) (Datum, error)\n\tEvalModDecimalIntOp(context.Context, *ModDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalModDecimalOp(context.Context, *ModDecimalOp, Datum, Datum) (Datum, error)\n\tEvalModFloatOp(context.Context, *ModFloatOp, Datum, Datum) (Datum, error)\n\tEvalModIntDecimalOp(context.Context, *ModIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalModIntOp(context.Context, *ModIntOp, Datum, Datum) (Datum, error)\n\tEvalModStringOp(context.Context, *ModStringOp, Datum, Datum) (Datum, error)\n\tEvalMultDecimalIntOp(context.Context, *MultDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalMultDecimalIntervalOp(context.Context, *MultDecimalIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMultDecimalOp(context.Context, *MultDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMultFloatIntervalOp(context.Context, *MultFloatIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMultFloatOp(context.Context, *MultFloatOp, Datum, Datum) (Datum, error)\n\tEvalMultIntDecimalOp(context.Context, *MultIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMultIntIntervalOp(context.Context, *MultIntIntervalOp, Datum, Datum) (Datum, error)\n\tEvalMultIntOp(context.Context, *MultIntOp, Datum, Datum) (Datum, error)\n\tEvalMultIntervalDecimalOp(context.Context, *MultIntervalDecimalOp, Datum, Datum) (Datum, error)\n\tEvalMultIntervalFloatOp(context.Context, *MultIntervalFloatOp, Datum, Datum) (Datum, error)\n\tEvalMultIntervalIntOp(context.Context, *MultIntervalIntOp, Datum, Datum) (Datum, error)\n\tEvalMultPGVectorOp(context.Context, *MultPGVectorOp, Datum, Datum) (Datum, error)\n\tEvalNegInnerProductVectorOp(context.Context, *NegInnerProductVectorOp, Datum, Datum) (Datum, error)\n\tEvalOverlapsArrayOp(context.Context, *OverlapsArrayOp, Datum, Datum) (Datum, error)\n\tEvalOverlapsINetOp(context.Context, *OverlapsINetOp, Datum, Datum) (Datum, error)\n\tEvalPlusDateIntOp(context.Context, *PlusDateIntOp, Datum, Datum) (Datum, error)\n\tEvalPlusDateIntervalOp(context.Context, *PlusDateIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPlusDateTimeOp(context.Context, *PlusDateTimeOp, Datum, Datum) (Datum, error)\n\tEvalPlusDateTimeTZOp(context.Context, *PlusDateTimeTZOp, Datum, Datum) (Datum, error)\n\tEvalPlusDecimalIntOp(context.Context, *PlusDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalPlusDecimalOp(context.Context, *PlusDecimalOp, Datum, Datum) (Datum, error)\n\tEvalPlusDecimalPGLSNOp(context.Context, *PlusDecimalPGLSNOp, Datum, Datum) (Datum, error)\n\tEvalPlusFloatOp(context.Context, *PlusFloatOp, Datum, Datum) (Datum, error)\n\tEvalPlusINetIntOp(context.Context, *PlusINetIntOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntDateOp(context.Context, *PlusIntDateOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntDecimalOp(context.Context, *PlusIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntINetOp(context.Context, *PlusIntINetOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntOp(context.Context, *PlusIntOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalDateOp(context.Context, *PlusIntervalDateOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalOp(context.Context, *PlusIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalTimeOp(context.Context, *PlusIntervalTimeOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalTimeTZOp(context.Context, *PlusIntervalTimeTZOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalTimestampOp(context.Context, *PlusIntervalTimestampOp, Datum, Datum) (Datum, error)\n\tEvalPlusIntervalTimestampTZOp(context.Context, *PlusIntervalTimestampTZOp, Datum, Datum) (Datum, error)\n\tEvalPlusPGLSNDecimalOp(context.Context, *PlusPGLSNDecimalOp, Datum, Datum) (Datum, error)\n\tEvalPlusPGVectorOp(context.Context, *PlusPGVectorOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimeDateOp(context.Context, *PlusTimeDateOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimeIntervalOp(context.Context, *PlusTimeIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimeTZDateOp(context.Context, *PlusTimeTZDateOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimeTZIntervalOp(context.Context, *PlusTimeTZIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimestampIntervalOp(context.Context, *PlusTimestampIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPlusTimestampTZIntervalOp(context.Context, *PlusTimestampTZIntervalOp, Datum, Datum) (Datum, error)\n\tEvalPowDecimalIntOp(context.Context, *PowDecimalIntOp, Datum, Datum) (Datum, error)\n\tEvalPowDecimalOp(context.Context, *PowDecimalOp, Datum, Datum) (Datum, error)\n\tEvalPowFloatOp(context.Context, *PowFloatOp, Datum, Datum) (Datum, error)\n\tEvalPowIntDecimalOp(context.Context, *PowIntDecimalOp, Datum, Datum) (Datum, error)\n\tEvalPowIntOp(context.Context, *PowIntOp, Datum, Datum) (Datum, error)\n\tEvalPrependToMaybeNullArrayOp(context.Context, *PrependToMaybeNullArrayOp, Datum, Datum) (Datum, error)\n\tEvalRShiftINetOp(context.Context, *RShiftINetOp, Datum, Datum) (Datum, error)\n\tEvalRShiftIntOp(context.Context, *RShiftIntOp, Datum, Datum) (Datum, error)\n\tEvalRShiftVarBitIntOp(context.Context, *RShiftVarBitIntOp, Datum, Datum) (Datum, error)\n\tEvalSimilarToOp(context.Context, *SimilarToOp, Datum, Datum) (Datum, error)\n\tEvalTSMatchesQueryVectorOp(context.Context, *TSMatchesQueryVectorOp, Datum, Datum) (Datum, error)\n\tEvalTSMatchesVectorQueryOp(context.Context, *TSMatchesVectorQueryOp, Datum, Datum) (Datum, error)\n}\n```\nUnaryOpEvaluator knows how to evaluate BinaryEvalOps.\n\n```go\ntype BitAndINetOp struct{}\n```\nBitAndINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitAndINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitAndIntOp struct{}\n```\nBitAndIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitAndIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitAndVarBitOp struct{}\n```\nBitAndVarBitOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitAndVarBitOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitOrINetOp struct{}\n```\nBitOrINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitOrINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitOrIntOp struct{}\n```\nBitOrIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitOrIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitOrVarBitOp struct{}\n```\nBitOrVarBitOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitOrVarBitOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitXorIntOp struct{}\n```\nBitXorIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitXorIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BitXorVarBitOp struct{}\n```\nBitXorVarBitOp is a BinaryEvalOp.\n\n```go\nfunc (op *BitXorVarBitOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype BlockState struct {\n\t// Parent is a pointer to this block's parent, if any. Note that this refers\n\t// to a parent within the same routine; nested routine calls currently do not\n\t// interact with one another directly (e.g. through TCO, see #119956).\n\tParent *BlockState\n\n\t// VariableCount tracks the number of variables that are in scope for this\n\t// block, so that the correct arguments can be supplied to an exception\n\t// handler when an error originates from a \"descendant\" block. Example:\n\t//\n\t// DECLARE\n\t//   x INT := 0;\n\t// BEGIN\n\t//   DECLARE\n\t//     y INT := 1;\n\t//   BEGIN\n\t//     y = 1 // 0;\n\t//   END;\n\t// EXCEPTION WHEN division_by_zero THEN\n\t//   RETURN 0;\n\t// END\n\t//\n\t// In this example, the error is thrown from the inner block, where variables\n\t// \"x\" and \"y\" are both in scope. Therefore, we will have access to values for\n\t// both variables. However, the error will be caught by the outer block, for\n\t// which only \"x\" is in scope. Therefore, the outer block must truncate the\n\t// values before supplying them to its exception handler as arguments.\n\t//\n\t// NOTE: the list of variables in an outer block *always* form a prefix of the\n\t// variables in a nested block.\n\tVariableCount int\n\n\t// ExceptionHandler is the exception handler for the current block, if any.\n\tExceptionHandler *RoutineExceptionHandler\n\n\t// SavepointTok allows the exception handler to roll-back changes to database\n\t// state if an error occurs during its execution. It currently maps to\n\t// kv.SavepointToken. We use the empty interface here rather than\n\t// kv.SavepointToken to avoid import cycles.\n\tSavepointTok interface{}\n\n\t// CursorTimestamp is the timestamp at which control transitioned into this\n\t// PL/pgSQL block. It is used to close (only) cursors which were opened within\n\t// the scope of the block when an exception is caught.\n\tCursorTimestamp *time.Time\n}\n```\nBlockState is shared state between all routines that make up a PLpgSQL block. It allows for coordination between the routines for exception handling.\n\n```go\ntype CCLOnlyStatement interface {\n\t// contains filtered or unexported methods\n}\n```\nCCLOnlyStatement is a marker interface for statements that require a CCL binary for successful planning or execution. It is used to enhance error messages when attempting to use these statements in non-CCL binaries.\n\n```go\ntype CTE struct {\n\tName AliasClause\n\tMtr  CTEMaterializeClause\n\tStmt Statement\n}\n```\nCTE represents a common table expression inside of a WITH clause.\n\n```go\ntype CTEMaterializeClause int8\n```\nCTEMaterializeClause represents either MATERIALIZED, NOT MATERIALIZED, or an empty materialization clause.\n\n```go\nconst (\n\t// CTEMaterializeDefault represents an empty materialization clause.\n\tCTEMaterializeDefault CTEMaterializeClause = iota\n\t// CTEMaterializeAlways represents MATERIALIZED.\n\tCTEMaterializeAlways\n\t// CTEMaterializeNever represents NOT MATERIALIZED.\n\tCTEMaterializeNever\n)\n```\n\n```go\ntype Call struct {\n\t// Proc contains the procedure reference and the arguments of the procedure.\n\tProc *FuncExpr\n}\n```\nCall represents a CALL statement to invoke a procedure.\n\n```go\nfunc (node *Call) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Call) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Call) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Call) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Call) String() string\n```\n\n```go\ntype CancelQueries struct {\n\tQueries  *Select\n\tIfExists bool\n}\n```\nCancelQueries represents a CANCEL QUERIES statement.\n\n```go\nfunc (node *CancelQueries) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CancelQueries) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CancelQueries) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CancelQueries) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CancelQueries) String() string\n```\n\n```go\ntype CancelSessions struct {\n\tSessions *Select\n\tIfExists bool\n}\n```\nCancelSessions represents a CANCEL SESSIONS statement.\n\n```go\nfunc (node *CancelSessions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CancelSessions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CancelSessions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CancelSessions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CancelSessions) String() string\n```\n\n```go\ntype CannedOptPlan struct {\n\tPlan string\n}\n```\nCannedOptPlan is used as the AST for a PREPARE .. AS OPT PLAN statement. This is a testing facility that allows execution (and benchmarking) of specific plans. See exprgen package for more information on the syntax.\n\n```go\nfunc (node *CannedOptPlan) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CannedOptPlan) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CannedOptPlan) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CannedOptPlan) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CannedOptPlan) String() string\n```\n\n```go\ntype CaseExpr struct {\n\tExpr  Expr\n\tWhens []*When\n\tElse  Expr\n\t// contains filtered or unexported fields\n}\n```\nCaseExpr represents a CASE expression.\n\n```go\nfunc NewTypedCaseExpr(\n\texpr TypedExpr, whens []*When, elseStmt TypedExpr, typ *types.T,\n) (*CaseExpr, error)\n```\nNewTypedCaseExpr returns a new CaseExpr that is verified to be well-typed.\n\n```go\nfunc (node *CaseExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *CaseExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta CaseExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *CaseExpr) String() string\n```\n\n```go\nfunc (expr *CaseExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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 CaseMode int\n```\nCaseMode directs which casing mode to use.\n\n```go\nconst (\n\t// LowerCase transforms case-insensitive strings (like SQL keywords) to lowercase.\n\tLowerCase CaseMode = 0\n\t// UpperCase transforms case-insensitive strings (like SQL keywords) to uppercase.\n\tUpperCase CaseMode = 1\n)\n```\n\n```go\ntype CastCounterType struct {\n\tFrom, To types.Family\n}\n```\nCastCounterType represents a cast from one family to another.\n\n```go\ntype CastExpr struct {\n\tExpr Expr\n\tType ResolvableTypeReference\n\n\tSyntaxMode castSyntaxMode\n\t// contains filtered or unexported fields\n}\n```\nCastExpr represents a CAST(expr AS type) expression.\n\n```go\nfunc NewTypedCastExpr(expr TypedExpr, typ *types.T) *CastExpr\n```\nNewTypedCastExpr returns a new CastExpr that is verified to be well-typed.\n\n```go\nfunc (node *CastExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *CastExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta CastExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *CastExpr) String() string\n```\n\n```go\nfunc (expr *CastExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, _ *types.T,\n) (TypedExpr, 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 CbrtDecimalOp struct{}\n```\nCbrtDecimalOp is a UnaryEvalOp.\n\n```go\nfunc (op *CbrtDecimalOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype CbrtFloatOp struct{}\n```\nCbrtFloatOp is a UnaryEvalOp.\n\n```go\nfunc (op *CbrtFloatOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype ChangefeedTarget struct {\n\tTableName  TablePattern\n\tFamilyName Name\n}\n```\nChangefeedTarget represents a database object to be watched by a changefeed.\n\n```go\nfunc ChangefeedTargetFromTableExpr(e TableExpr) (ChangefeedTarget, error)\n```\nChangefeedTargetFromTableExpr returns ChangefeedTarget for the specified table expression.\n\n```go\nfunc (ct *ChangefeedTarget) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ChangefeedTargets []ChangefeedTarget\n```\nChangefeedTargets represents a list of database objects to be watched by a changefeed.\n\n```go\nfunc (cts *ChangefeedTargets) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype CheckConstraintTableDef struct {\n\tName                  Name\n\tExpr                  Expr\n\tFromHashShardedColumn bool\n\tIfNotExists           bool\n}\n```\nCheckConstraintTableDef represents a check constraint within a CREATE TABLE statement.\n\n```go\nfunc (node *CheckConstraintTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *CheckConstraintTableDef) SetIfNotExists()\n```\nSetIfNotExists implements the ConstraintTableDef interface.\n\n```go\nfunc (node *CheckConstraintTableDef) SetName(name Name)\n```\nSetName implements the ConstraintTableDef interface.\n\n```go\ntype CheckExternalConnection struct {\n\tURI     Expr\n\tOptions CheckExternalConnectionOptions\n}\n```\n\n```go\nfunc (c *CheckExternalConnection) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (*CheckExternalConnection) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CheckExternalConnection) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CheckExternalConnection) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CheckExternalConnection) String() string\n```\n\n```go\ntype CheckExternalConnectionOptions struct {\n\tTransferSize Expr\n\tDuration     Expr\n\tConcurrency  Expr\n}\n```\n\n```go\nfunc (c *CheckExternalConnectionOptions) CombineWith(other *CheckExternalConnectionOptions) error\n```\n\n```go\nfunc (c *CheckExternalConnectionOptions) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (c *CheckExternalConnectionOptions) IsDefault() bool\n```\nIsDefault returns true if this options object is empty.\n\n```go\ntype CloseCursor struct {\n\tName Name\n\tAll  bool\n}\n```\nCloseCursor represents a CLOSE statement.\n\n```go\nfunc (c CloseCursor) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CloseCursor) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CloseCursor) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CloseCursor) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CloseCursor) String() string\n```\n\n```go\ntype CmpOp struct {\n\tLeftType  *types.T\n\tRightType *types.T\n\n\t// Datum return type is a union between *DBool and dNull.\n\tEvalOp BinaryEvalOp\n\n\tOnTypeCheck func()\n\n\t// If CalledOnNullInput is false, the operator returns NULL\n\t// whenever either argument is NULL.\n\tCalledOnNullInput bool\n\n\tVolatility volatility.V\n\n\tOverloadPreference\n\t// contains filtered or unexported fields\n}\n```\nCmpOp is a comparison operator.\n\n```go\ntype CmpOpOverloads struct {\n\t// contains filtered or unexported fields\n}\n```\nCmpOpOverloads is an overloaded set of comparison operator implementations.\n\n```go\nfunc (o *CmpOpOverloads) ForEachCmpOp(f func(op *CmpOp) error) error\n```\nForEachCmpOp iterates the ops in the set.\n\n```go\nfunc (o *CmpOpOverloads) LookupImpl(left, right *types.T) (*CmpOp, bool)\n```\nLookupImpl is used to look up the overload for a pair of types.\n\n```go\ntype CoalesceExpr struct {\n\tName  string\n\tExprs Exprs\n\t// contains filtered or unexported fields\n}\n```\nCoalesceExpr represents a COALESCE or IFNULL expression.\n\n```go\nfunc NewTypedCoalesceExpr(typedExprs TypedExprs, typ *types.T) *CoalesceExpr\n```\nNewTypedCoalesceExpr returns a CoalesceExpr that is well-typed.\n\n```go\nfunc (node *CoalesceExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *CoalesceExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *CoalesceExpr) GetWhenCondition(i int) (whenCond Expr)\n```\nGetWhenCondition builds the WHEN condition to use for the ith expression inside the Coalesce.\n\n```go\nfunc (ta CoalesceExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *CoalesceExpr) String() string\n```\n\n```go\nfunc (expr *CoalesceExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *CoalesceExpr) TypedExprAt(idx int) TypedExpr\n```\nTypedExprAt returns the expression at the specified index as a TypedExpr.\n\n```go\nfunc (expr *CoalesceExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype CollateExpr struct {\n\tExpr   Expr\n\tLocale string\n\t// contains filtered or unexported fields\n}\n```\nCollateExpr represents an (expr COLLATE locale) expression.\n\n```go\nfunc NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr\n```\nNewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.\n\n```go\nfunc (node *CollateExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *CollateExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta CollateExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *CollateExpr) String() string\n```\n\n```go\nfunc (expr *CollateExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *CollateExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype CollationEnvironment struct {\n\t// contains filtered or unexported fields\n}\n```\nCollationEnvironment stores the state needed by NewDCollatedString to construct collation keys efficiently.\n\n```go\ntype ColumnAccessExpr struct {\n\tExpr Expr\n\n\t// ByIndex, if set, indicates that the access is using a numeric\n\t// column reference and ColIndex below is already set.\n\tByIndex bool\n\n\t// ColName is the name of the column to access. Empty if ByIndex is\n\t// set.\n\tColName Name\n\n\t// ColIndex indicates the index of the column in the tuple. This is\n\t// either:\n\t// - set during type checking based on the label in ColName if\n\t//   ByIndex is false,\n\t// - or checked for validity during type checking if ByIndex is true.\n\t// The first column in the tuple is at index 0. The input\n\t// syntax (E).@N populates N-1 in this field.\n\tColIndex int\n\t// contains filtered or unexported fields\n}\n```\nColumnAccessExpr represents (E).x expressions. Specifically, it allows accessing the column(s) from a Set Returning Function.\n\n```go\nfunc NewTypedColumnAccessExpr(expr TypedExpr, colName Name, colIdx int) *ColumnAccessExpr\n```\nNewTypedColumnAccessExpr creates a pre-typed ColumnAccessExpr. A by-index ColumnAccessExpr can be specified by passing an empty string as colName.\n\n```go\nfunc (node *ColumnAccessExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *ColumnAccessExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta ColumnAccessExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *ColumnAccessExpr) String() string\n```\n\n```go\nfunc (expr *ColumnAccessExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *ColumnAccessExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ColumnCheckConstraint struct {\n\tExpr Expr\n}\n```\nColumnCheckConstraint represents either a check on a column.\n\n```go\ntype ColumnCollation string\n```\nColumnCollation represents a COLLATE clause for a column.\n\n```go\ntype ColumnComputedDef struct {\n\tExpr    Expr\n\tVirtual bool\n}\n```\nColumnComputedDef represents the description of a computed column.\n\n```go\ntype ColumnDef struct {\n\tName Name\n\tType ResolvableTypeReference\n}\n```\nColumnDef represents a column definition in the context of a record type alias, like in select \\* from json\\_to\\_record(...) AS foo(a INT, b INT).\n\n```go\nfunc (c *ColumnDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ColumnDefList []ColumnDef\n```\nColumnDefList represents a list of ColumnDefs.\n\n```go\nfunc (c *ColumnDefList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ColumnDefault struct {\n\tExpr Expr\n}\n```\nColumnDefault represents a DEFAULT clause for a column.\n\n```go\ntype ColumnFKConstraint struct {\n\tTable   TableName\n\tCol     Name // empty-string means use PK\n\tActions ReferenceActions\n\tMatch   CompositeKeyMatchMethod\n}\n```\nColumnFKConstraint represents a FK-constaint on a column.\n\n```go\ntype ColumnFamilyConstraint struct {\n\tFamily      Name\n\tCreate      bool\n\tIfNotExists bool\n}\n```\nColumnFamilyConstraint represents FAMILY on a column.\n\n```go\ntype ColumnID = catid.ColumnID\n```\nColumnID is a custom type for ColumnDescriptor IDs.\n\n```go\ntype ColumnItem struct {\n\t// TableName holds the table prefix, if the name refers to a column. It is\n\t// optional.\n\t//\n\t// This uses UnresolvedObjectName because we need to preserve the\n\t// information about which parts were initially specified in the SQL\n\t// text. ColumnItems are intermediate data structures anyway, that\n\t// still need to undergo name resolution.\n\tTableName *UnresolvedObjectName\n\t// ColumnName names the designated column.\n\tColumnName Name\n}\n```\nColumnItem corresponds to the name of a column in an expression.\n\n```go\nfunc MakeColumnItem(tn *TableName, colName Name) ColumnItem\n```\nMakeColumnItem constructs a column item from an already valid TableName. This can be used for e.g. pretty-printing.\n\n```go\nfunc NewColumnItem(tn *TableName, colName Name) *ColumnItem\n```\nNewColumnItem constructs a column item from an already valid TableName. This can be used for e.g. pretty-printing.\n\n```go\nfunc (c *ColumnItem) Column() string\n```\nColumn retrieves the unqualified column name.\n\n```go\nfunc (node *ColumnItem) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (c *ColumnItem) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface. If this is updated, then dummyColumnItem.Format should be updated as well.\n\n```go\nfunc (c *ColumnItem) NormalizeVarName() (VarName, error)\n```\nNormalizeVarName implements the VarName interface.\n\n```go\nfunc (c *ColumnItem) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (c *ColumnItem) String() string\n```\n\n```go\nfunc (expr *ColumnItem) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.  This function has a valid implementation only for testing within this package. During query execution, ColumnItems are replaced to IndexedVars prior to type checking.\n\n```go\nfunc (c *ColumnItem) Variable()\n```\nVariable implements the VariableExpr interface.\n\nNote that in common uses, ColumnItem ought to be replaced to an IndexedVar prior to evaluation.\n\n```go\nfunc (expr *ColumnItem) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ColumnMutationCmd interface {\n\tAlterTableCmd\n\tGetColumn() Name\n}\n```\nColumnMutationCmd is the subset of AlterTableCmds that modify an existing column.\n\n```go\ntype ColumnOnUpdate struct {\n\tExpr Expr\n}\n```\nColumnOnUpdate represents a ON UPDATE 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     ResolvableTypeReference\n\tIsSerial bool\n\t// IsCreateAs is set to true if the Type is resolved after parsing.\n\t// CREATE AS statements must not display column types during formatting.\n\tIsCreateAs        bool\n\tGeneratedIdentity struct {\n\t\tIsGeneratedAsIdentity   bool\n\t\tGeneratedAsIdentityType GeneratedIdentityType\n\t\tSeqOptions              SequenceOptions\n\t}\n\tHidden   bool\n\tNullable struct {\n\t\tNullability    Nullability\n\t\tConstraintName Name\n\t}\n\tPrimaryKey struct {\n\t\tIsPrimaryKey  bool\n\t\tSharded       bool\n\t\tShardBuckets  Expr\n\t\tStorageParams StorageParams\n\t}\n\tUnique struct {\n\t\tIsUnique       bool\n\t\tWithoutIndex   bool\n\t\tConstraintName Name\n\t}\n\tDefaultExpr struct {\n\t\tExpr           Expr\n\t\tConstraintName Name\n\t}\n\tOnUpdateExpr struct {\n\t\tExpr           Expr\n\t\tConstraintName Name\n\t}\n\tCheckExprs []ColumnTableDefCheckExpr\n\tReferences struct {\n\t\tTable          *TableName\n\t\tCol            Name\n\t\tConstraintName Name\n\t\tActions        ReferenceActions\n\t\tMatch          CompositeKeyMatchMethod\n\t}\n\tComputed struct {\n\t\tComputed bool\n\t\tExpr     Expr\n\t\tVirtual  bool\n\t}\n\tFamily struct {\n\t\tName        Name\n\t\tCreate      bool\n\t\tIfNotExists bool\n\t}\n}\n```\nColumnTableDef represents a column definition within a CREATE TABLE statement.\n\n```go\nfunc NewColumnTableDef(\n\tname Name,\n\ttypRef ResolvableTypeReference,\n\tisSerial bool,\n\tqualifications []NamedColumnQualification,\n) (*ColumnTableDef, error)\n```\nNewColumnTableDef constructs a column definition for a CreateTable statement.\n\n```go\nfunc (node *ColumnTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ColumnTableDef) HasColumnFamily() bool\n```\nHasColumnFamily returns if the ColumnTableDef has a column family.\n\n```go\nfunc (node *ColumnTableDef) HasDefaultExpr() bool\n```\nHasDefaultExpr returns if the ColumnTableDef has a default expression.\n\n```go\nfunc (node *ColumnTableDef) HasFKConstraint() bool\n```\nHasFKConstraint returns if the ColumnTableDef has a foreign key constraint.\n\n```go\nfunc (node *ColumnTableDef) HasOnUpdateExpr() bool\n```\nHasOnUpdateExpr returns if the ColumnTableDef has an ON UPDATE expression.\n\n```go\nfunc (node *ColumnTableDef) IsComputed() bool\n```\nIsComputed returns if the ColumnTableDef is a computed column.\n\n```go\nfunc (node *ColumnTableDef) IsVirtual() bool\n```\nIsVirtual returns if the ColumnTableDef is a virtual column.\n\n```go\nfunc (node *ColumnTableDef) String() string\n```\nString implements the fmt.Stringer interface.\n\n```go\ntype ColumnTableDefCheckExpr struct {\n\tExpr           Expr\n\tConstraintName Name\n}\n```\nColumnTableDefCheckExpr represents a check constraint on a column definition within a CREATE TABLE statement.\n\n```go\ntype CommentOnColumn struct {\n\t*ColumnItem\n\tComment *string\n}\n```\nCommentOnColumn represents an COMMENT ON COLUMN statement.\n\n```go\nfunc (n *CommentOnColumn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnColumn) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnColumn) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnColumn) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnColumn) String() string\n```\n\n```go\ntype CommentOnConstraint struct {\n\tConstraint Name\n\tTable      *UnresolvedObjectName\n\tComment    *string\n}\n```\nCommentOnConstraint represents a COMMENT ON CONSTRAINT statement\n\n```go\nfunc (n *CommentOnConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnConstraint) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnConstraint) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnConstraint) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnConstraint) String() string\n```\n\n```go\ntype CommentOnDatabase struct {\n\tName    Name\n\tComment *string\n}\n```\nCommentOnDatabase represents an COMMENT ON DATABASE statement.\n\n```go\nfunc (n *CommentOnDatabase) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnDatabase) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnDatabase) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnDatabase) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnDatabase) String() string\n```\n\n```go\ntype CommentOnIndex struct {\n\tIndex   TableIndexName\n\tComment *string\n}\n```\nCommentOnIndex represents a COMMENT ON INDEX statement.\n\n```go\nfunc (n *CommentOnIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnIndex) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnIndex) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnIndex) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnIndex) String() string\n```\n\n```go\ntype CommentOnSchema struct {\n\tName    ObjectNamePrefix\n\tComment *string\n}\n```\nCommentOnSchema represents an COMMENT ON SCHEMA statement.\n\n```go\nfunc (n *CommentOnSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnSchema) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnSchema) String() string\n```\n\n```go\ntype CommentOnTable struct {\n\tTable   *UnresolvedObjectName\n\tComment *string\n}\n```\nCommentOnTable represents an COMMENT ON TABLE statement.\n\n```go\nfunc (n *CommentOnTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnTable) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnTable) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnTable) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnTable) String() string\n```\n\n```go\ntype CommentOnType struct {\n\tName    *UnresolvedObjectName\n\tComment *string\n}\n```\nCommentOnType represents a COMMENT ON TYPE statement.\n\n```go\nfunc (n *CommentOnType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommentOnType) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommentOnType) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommentOnType) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommentOnType) String() string\n```\n\n```go\ntype CommitPrepared struct {\n\tTransaction *StrVal\n}\n```\nCommitPrepared represents a COMMIT PREPARED \\\u003ctransaction-id\u003e statement, used for the second phase of a two-phase commit.\n\n```go\nfunc (node *CommitPrepared) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommitPrepared) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CommitPrepared) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CommitPrepared) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CommitPrepared) String() string\n```\n\n```go\ntype CommitTransaction struct{}\n```\nCommitTransaction represents a COMMIT statement.\n\n```go\nfunc (node *CommitTransaction) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CommitTransaction) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *CommitTransaction) String() string\n```\n\n```go\ntype CompareAnyTupleOp CompareTupleOp\n```\nCompareAnyTupleOp is a BinaryEvalOp.\n\n```go\nfunc (t *CompareAnyTupleOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval suppresses an auto-generated binding and membership in the OpEvaluator interface.\n\n```go\ntype CompareBox2DOp struct {\n\tOp func(left, right Datum) bool\n}\n```\nCompareBox2DOp is a BinaryEvalOp.\n\n```go\nfunc (op *CompareBox2DOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype CompareContext interface {\n\n\t// UnwrapDatum will unwrap the OIDs and potentially the placeholders.\n\tUnwrapDatum(ctx context.Context, d Datum) Datum\n\tGetLocation() *time.Location\n\tGetRelativeParseTime() time.Time\n\n\t// MustGetPlaceholderValue is used to compare Datum\n\tMustGetPlaceholderValue(ctx context.Context, p *Placeholder) Datum\n}\n```\nCompareContext represents the dependencies used to evaluate comparisons between datums.\n\n```go\ntype CompareScalarOp struct {\n\ttreecmp.ComparisonOperator\n}\n```\nCompareScalarOp is a BinaryEvalOp.\n\n```go\nfunc (op *CompareScalarOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype CompareTupleOp struct {\n\ttreecmp.ComparisonOperator\n}\n```\nCompareTupleOp is a BinaryEvalOp.\n\n```go\nfunc (op *CompareTupleOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ComparisonExpr struct {\n\tOperator    treecmp.ComparisonOperator\n\tSubOperator treecmp.ComparisonOperator // used for array operators (when Operator is Any, Some, or All)\n\tLeft, Right Expr\n\n\tOp *CmpOp\n\t// contains filtered or unexported fields\n}\n```\nComparisonExpr represents a two-value comparison expression.\n\n```go\nfunc NewTypedComparisonExpr(op treecmp.ComparisonOperator, left, right TypedExpr) *ComparisonExpr\n```\nNewTypedComparisonExpr returns a new ComparisonExpr that is verified to be well-typed.\n\n```go\nfunc NewTypedComparisonExprWithSubOp(\n\top, subOp treecmp.ComparisonOperator, left, right TypedExpr,\n) *ComparisonExpr\n```\nNewTypedComparisonExprWithSubOp returns a new ComparisonExpr that is verified to be well-typed.\n\n```go\nfunc (node *ComparisonExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *ComparisonExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta ComparisonExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *ComparisonExpr) String() string\n```\n\n```go\nfunc (expr *ComparisonExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *ComparisonExpr) TypedLeft() TypedExpr\n```\nTypedLeft returns the ComparisonExpr's left expression as a TypedExpr.\n\n```go\nfunc (node *ComparisonExpr) TypedRight() TypedExpr\n```\nTypedRight returns the ComparisonExpr's right expression as a TypedExpr.\n\n```go\nfunc (expr *ComparisonExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype ComplementINetOp struct{}\n```\nComplementINetOp is a UnaryEvalOp.\n\n```go\nfunc (op *ComplementINetOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype ComplementIntOp struct{}\n```\nComplementIntOp is a UnaryEvalOp.\n\n```go\nfunc (op *ComplementIntOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype ComplementVarBitOp struct{}\n```\nComplementVarBitOp is a UnaryEvalOp.\n\n```go\nfunc (op *ComplementVarBitOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype CompositeDatum interface {\n\tDatum\n\t// IsComposite returns true if this datum is not round-tripable in a key\n\t// encoding.\n\tIsComposite() bool\n}\n```\nCompositeDatum is a Datum that may require composite encoding in indexes. Any Datum implementing this interface must also add itself to colinfo.CanHaveCompositeKeyEncoding.\n\n```go\ntype CompositeKeyMatchMethod semenumpb.Match\n```\nCompositeKeyMatchMethod is the algorithm use when matching composite keys. See [https://github.com/cockroachdb/cockroachdb-parser/issues/20305](https://github.com/cockroachdb/cockroachdb-parser/issues/20305) or [https://www.postgresql.org/docs/11/sql-createtable.html](https://www.postgresql.org/docs/11/sql-createtable.html) for details on the different composite foreign key matching methods.\n\n```go\nconst (\n\tMatchSimple CompositeKeyMatchMethod = iota\n\tMatchFull\n\tMatchPartial // Note: PARTIAL not actually supported at this point.\n)\n```\nThe values for CompositeKeyMatchMethod.\n\n```go\nfunc (x CompositeKeyMatchMethod) String() string\n```\nString implements the fmt.Stringer interface.\n\n```go\ntype CompositeTypeElem struct {\n\tLabel Name\n\tType  ResolvableTypeReference\n}\n```\nCompositeTypeElem is a single element in a composite type definition.\n\n```go\ntype ConcatArraysOp struct {\n\tTyp *types.T\n}\n```\nConcatArraysOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatArraysOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ConcatBytesOp struct{}\n```\nConcatBytesOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatBytesOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ConcatJsonbOp struct{}\n```\nConcatJsonbOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatJsonbOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ConcatOp struct {\n\tLeft  *types.T\n\tRight *types.T\n}\n```\nConcatOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ConcatStringOp struct{}\n```\nConcatStringOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatStringOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ConcatVarBitOp struct{}\n```\nConcatVarBitOp is a BinaryEvalOp.\n\n```go\nfunc (op *ConcatVarBitOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype Constant interface {\n\tExpr\n\t// AvailableTypes returns the ordered set of types that the Constant is able to\n\t// be resolved into. The order of the type slice provides a notion of precedence,\n\t// with the first element in the ordering being the Constant's \"natural type\".\n\tAvailableTypes() []*types.T\n\t// DesirableTypes returns the ordered set of types that the constant would\n\t// prefer to be resolved into. As in AvailableTypes, the order of the returned\n\t// type slice provides a notion of precedence, with the first element in the\n\t// ordering being the Constant's \"natural type.\" The function is meant to be\n\t// differentiated from AvailableTypes in that it will exclude certain types\n\t// that are possible, but not desirable.\n\t//\n\t// An example of this is a floating point numeric constant without a value\n\t// past the decimal point. It is possible to resolve this constant as a\n\t// decimal, but it is not desirable.\n\tDesirableTypes() []*types.T\n\t// ResolveAsType resolves the Constant as the specified type, or returns an\n\t// error if the Constant could not be resolved as that type. The method should\n\t// only be passed a type returned from AvailableTypes and should never be\n\t// called more than once for a given Constant.\n\t//\n\t// The returned expression is either a Datum or a CastExpr wrapping a Datum;\n\t// the latter is necessary for cases where the result would depend on the\n\t// context (like the timezone or the current time).\n\tResolveAsType(context.Context, *SemaContext, *types.T) (TypedExpr, error)\n}\n```\nConstant is an constant literal expression which may be resolved to more than one type.\n\n```go\ntype ConstraintTableDef interface {\n\tTableDef\n\n\t// SetName replaces the name of the definition in-place. Used in the parser.\n\tSetName(name Name)\n\n\t// SetIfNotExists sets this definition as coming from an\n\t// ADD CONSTRAINT IF NOT EXISTS statement. Used in the parser.\n\tSetIfNotExists()\n\t// contains filtered or unexported methods\n}\n```\nConstraintTableDef represents a constraint definition within a CREATE TABLE statement.\n\n```go\ntype ContainedByArrayOp struct{}\n```\nContainedByArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *ContainedByArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ContainedByJsonbOp struct{}\n```\nContainedByJsonbOp is a BinaryEvalOp.\n\n```go\nfunc (op *ContainedByJsonbOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ContainsArrayOp struct{}\n```\nContainsArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *ContainsArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ContainsJsonbOp struct{}\n```\nContainsJsonbOp is a BinaryEvalOp.\n\n```go\nfunc (op *ContainsJsonbOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ControlJobs struct {\n\tJobs    *Select\n\tCommand JobCommand\n\tReason  Expr\n}\n```\nControlJobs represents a PAUSE/RESUME/CANCEL JOBS statement.\n\n```go\nfunc (n *ControlJobs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ControlJobs) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ControlJobs) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ControlJobs) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ControlJobs) String() string\n```\n\n```go\ntype ControlJobsForSchedules struct {\n\tSchedules *Select\n\tCommand   JobCommand\n}\n```\nControlJobsForSchedules represents PAUSE/RESUME/CANCEL clause which applies job command to the jobs matching specified schedule(s).\n\n```go\nfunc (n *ControlJobsForSchedules) Format(ctx *FmtCtx)\n```\nFormat implements NodeFormatter interface.\n\n```go\nfunc (*ControlJobsForSchedules) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ControlJobsForSchedules) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ControlJobsForSchedules) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ControlJobsForSchedules) String() string\n```\n\n```go\ntype ControlJobsOfType struct {\n\tType    string\n\tCommand JobCommand\n}\n```\nControlJobsOfType represents PAUSE/RESUME/CANCEL clause which applies the job command to the job matching a specified type\n\n```go\nfunc (n *ControlJobsOfType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ControlJobsOfType) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ControlJobsOfType) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ControlJobsOfType) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ControlJobsOfType) String() string\n```\n\n```go\ntype ControlSchedules struct {\n\tSchedules *Select\n\tCommand   ScheduleCommand\n}\n```\nControlSchedules represents PAUSE/RESUME SCHEDULE statement.\n\n```go\nfunc (n *ControlSchedules) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ControlSchedules) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ControlSchedules) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ControlSchedules) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ControlSchedules) String() string\n```\n\n```go\ntype CopyFormat int\n```\nCopyFormat identifies a COPY data format.\n\n```go\nconst (\n\tCopyFormatText CopyFormat = iota\n\tCopyFormatBinary\n\tCopyFormatCSV\n)\n```\nValid values for CopyFormat.\n\n```go\ntype CopyFrom struct {\n\tTable   TableName\n\tColumns NameList\n\tStdin   bool\n\tOptions CopyOptions\n}\n```\nCopyFrom represents a COPY FROM statement.\n\n```go\nfunc (node *CopyFrom) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CopyFrom) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CopyFrom) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CopyFrom) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CopyFrom) String() string\n```\n\n```go\ntype CopyOptions struct {\n\tDestination Expr\n\tCopyFormat  CopyFormat\n\tDelimiter   Expr\n\tNull        Expr\n\tEscape      *StrVal\n\tHeader      bool\n\tQuote       *StrVal\n\tEncoding    *StrVal\n\n\t// Additional flags are needed to keep track of whether explicit default\n\t// values were already set.\n\tHasFormat bool\n\tHasHeader bool\n}\n```\nCopyOptions describes options for COPY execution.\n\n```go\nfunc (o *CopyOptions) CombineWith(other *CopyOptions) error\n```\nCombineWith merges other options into this struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (o *CopyOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface\n\n```go\nfunc (o CopyOptions) IsDefault() bool\n```\nIsDefault returns true if this struct has default value.\n\n```go\ntype CopyTo struct {\n\tTable     TableName\n\tColumns   NameList\n\tStatement Statement\n\tOptions   CopyOptions\n}\n```\nCopyTo represents a COPY TO statement.\n\n```go\nfunc (node *CopyTo) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CopyTo) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CopyTo) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CopyTo) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CopyTo) String() string\n```\n\n```go\ntype CosDistanceVectorOp struct{}\n```\nCosDistanceVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *CosDistanceVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype CreateChangefeed struct {\n\tTargets ChangefeedTargets\n\tSinkURI Expr\n\tOptions KVOptions\n\tSelect  *SelectClause\n}\n```\nCreateChangefeed represents a CREATE CHANGEFEED statement.\n\n```go\nfunc (node *CreateChangefeed) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateChangefeed) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *CreateChangefeed) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateChangefeed) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateChangefeed) String() string\n```\n\n```go\ntype CreateDatabase struct {\n\tIfNotExists     bool\n\tName            Name\n\tTemplate        string\n\tEncoding        string\n\tCollate         string\n\tCType           string\n\tConnectionLimit int32\n\tPrimaryRegion   Name\n\tRegions         NameList\n\tSurvivalGoal    SurvivalGoal\n\tPlacement       DataPlacement\n\tOwner           RoleSpec\n\tSuperRegion     SuperRegion\n\tSecondaryRegion Name\n}\n```\nCreateDatabase represents a CREATE DATABASE statement.\n\n```go\nfunc (node *CreateDatabase) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateDatabase) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *CreateDatabase) String() string\n```\n\n```go\ntype CreateExtension struct {\n\tName        Name\n\tIfNotExists bool\n}\n```\nCreateExtension represents a CREATE EXTENSION statement.\n\n```go\nfunc (node *CreateExtension) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateExtension) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateExtension) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateExtension) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateExtension) String() string\n```\n\n```go\ntype CreateExternalConnection struct {\n\tConnectionLabelSpec LabelSpec\n\tAs                  Expr\n}\n```\nCreateExternalConnection represents a CREATE EXTERNAL CONNECTION statement.\n\n```go\nfunc (node *CreateExternalConnection) Format(ctx *FmtCtx)\n```\nFormat implements the Statement interface.\n\n```go\nfunc (*CreateExternalConnection) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateExternalConnection) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateExternalConnection) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateExternalConnection) String() string\n```\n\n```go\ntype CreateIndex struct {\n\tName        Name\n\tTable       TableName\n\tUnique      bool\n\tType        idxtype.T\n\tIfNotExists bool\n\tColumns     IndexElemList\n\tSharded     *ShardedIndexDef\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\tPartitionByIndex *PartitionByIndex\n\tStorageParams    StorageParams\n\tPredicate        Expr\n\tConcurrently     bool\n\tInvisibility     IndexInvisibility\n}\n```\nCreateIndex represents a CREATE INDEX statement.\n\n```go\nfunc (node *CreateIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateIndex) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *CreateIndex) String() string\n```\n\n```go\ntype CreateLogicalReplicationStream struct {\n\tPGURL       Expr\n\tFrom        LogicalReplicationResources\n\tInto        LogicalReplicationResources\n\tCreateTable bool\n\tOptions     LogicalReplicationOptions\n}\n```\n\n```go\nfunc (node *CreateLogicalReplicationStream) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateLogicalReplicationStream) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateLogicalReplicationStream) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateLogicalReplicationStream) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateLogicalReplicationStream) String() string\n```\n\n```go\ntype CreatePolicy struct {\n\tIfNotExists bool\n\tPolicyName  Name\n\tTableName   *UnresolvedObjectName\n\tType        PolicyType\n\tCmd         PolicyCommand\n\tRoles       RoleSpecList\n\tExprs       PolicyExpressions\n}\n```\nCreatePolicy is a tree struct for the CREATE POLICY DDL statement\n\n```go\nfunc (node *CreatePolicy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreatePolicy) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreatePolicy) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreatePolicy) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreatePolicy) String() string\n```\n\n```go\ntype CreateRole struct {\n\tName        RoleSpec\n\tIfNotExists bool\n\tIsRole      bool\n\tKVOptions   KVOptions\n}\n```\nCreateRole represents a CREATE ROLE statement.\n\n```go\nfunc (node *CreateRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateRole) String() string\n```\n\n```go\ntype CreateRoutine struct {\n\tIsProcedure bool\n\tReplace     bool\n\tName        RoutineName\n\tParams      RoutineParams\n\tReturnType  *RoutineReturnType\n\tOptions     RoutineOptions\n\tRoutineBody *RoutineBody\n\t// BodyStatements is not assigned during initial parsing of user input. It's\n\t// assigned during opt builder for logging purpose at the moment. It stores\n\t// all parsed AST nodes of body statements with all expression in original\n\t// format. That is sequence names and type name in expressions are not\n\t// rewritten with OIDs.\n\tBodyStatements Statements\n\t// BodyAnnotations is not assigned during initial parsing of user input. It's\n\t// assigned by the opt builder when the optimizer parses the body statements.\n\tBodyAnnotations []*Annotations\n}\n```\nCreateRoutine represents a CREATE FUNCTION or CREATE PROCEDURE statement.\n\n```go\nfunc (node *CreateRoutine) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateRoutine) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *CreateRoutine) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateRoutine) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateRoutine) String() string\n```\n\n```go\ntype CreateSchema struct {\n\tIfNotExists bool\n\tAuthRole    RoleSpec\n\tSchema      ObjectNamePrefix\n}\n```\nCreateSchema represents a CREATE SCHEMA statement.\n\n```go\nfunc (node *CreateSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *CreateSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *CreateSchema) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateSchema) String() string\n```\n\n```go\ntype CreateSequence struct {\n\tIfNotExists bool\n\tName        TableName\n\tPersistence Persistence\n\tOptions     SequenceOptions\n}\n```\nCreateSequence represents a CREATE SEQUENCE statement.\n\n```go\nfunc (node *CreateSequence) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateSequence) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateSequence) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateSequence) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateSequence) String() string\n```\n\n```go\ntype CreateStats struct {\n\tName        Name\n\tColumnNames NameList\n\tTable       TableExpr\n\tOptions     CreateStatsOptions\n}\n```\nCreateStats represents a CREATE STATISTICS statement.\n\n```go\nfunc (node *CreateStats) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateStats) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateStats) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateStats) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateStats) String() string\n```\n\n```go\ntype CreateStatsOptions struct {\n\t// Throttling enables throttling and indicates the fraction of time we are\n\t// idling (between 0 and 1).\n\tThrottling float64\n\n\t// AsOf performs a historical read at the given timestamp.\n\t// Note that the timestamp will be moved up during the operation if it gets\n\t// too old (in order to avoid problems with TTL expiration).\n\tAsOf AsOfClause\n\n\t// UsingExtremes is true when the statistics collection is at\n\t// extreme values of the table or the index specified.\n\tUsingExtremes bool\n\n\t// Where will specify statistics collection in a set of rows of the table\n\t// or index specified.\n\tWhere *Where\n}\n```\nCreateStatsOptions contains options for CREATE STATISTICS.\n\n```go\nfunc (o *CreateStatsOptions) CombineWith(other *CreateStatsOptions) error\n```\nCombineWith combines two options, erroring out if the two options contain incompatible settings.\n\n```go\nfunc (o *CreateStatsOptions) Empty() bool\n```\nEmpty returns true if no options were provided.\n\n```go\nfunc (o *CreateStatsOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype CreateTable struct {\n\tIfNotExists      bool\n\tTable            TableName\n\tPartitionByTable *PartitionByTable\n\tPersistence      Persistence\n\tStorageParams    StorageParams\n\tOnCommit         CreateTableOnCommitSetting\n\t// In CREATE...AS queries, Defs represents a list of ColumnTableDefs, one for\n\t// each column, and a ConstraintTableDef for each constraint on a subset of\n\t// these columns.\n\tDefs     TableDefs\n\tAsSource *Select\n\tLocality *Locality\n}\n```\nCreateTable represents a CREATE TABLE statement.\n\n```go\nfunc (node *CreateTable) As() bool\n```\nAs returns true if this table represents a CREATE TABLE ... AS statement, false otherwise.\n\n```go\nfunc (node *CreateTable) AsHasUserSpecifiedPrimaryKey() bool\n```\nAsHasUserSpecifiedPrimaryKey returns true if a CREATE TABLE ... AS statement has a PRIMARY KEY constraint specified.\n\n```go\nfunc (node *CreateTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *CreateTable) FormatBody(ctx *FmtCtx)\n```\nFormatBody formats the \"body\" of the create table definition - everything but the CREATE TABLE tableName part.\n\n```go\nfunc (node *CreateTable) HoistConstraints()\n```\nHoistConstraints finds column check and foreign key constraints defined inline with their columns and makes them table-level constraints, stored in n.Defs. For example, the foreign key constraint in\n\n\tCREATE TABLE foo (a INT REFERENCES bar(a))\n\ngets pulled into a top-level constraint like:\n\n\tCREATE TABLE foo (a INT, FOREIGN KEY (a) REFERENCES bar(a))\n\nSimilarly, the CHECK constraint in\n\n\tCREATE TABLE foo (a INT CHECK (a \u003c 1), b INT)\n\ngets pulled into a top-level constraint like:\n\n\tCREATE TABLE foo (a INT, b INT, CHECK (a \u003c 1))\n\nNote that some SQL databases require that a constraint attached to a column to refer only to the column it is attached to. We follow Postgres' behavior, however, in omitting this restriction by blindly hoisting all column constraints. For example, the following table definition is accepted in CockroachDB and Postgres, but not necessarily other SQL databases:\n\n\tCREATE TABLE foo (a INT CHECK (a \u003c b), b INT)\n\nUnique constraints are not hoisted.\n\n```go\nfunc (n *CreateTable) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *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 (n *CreateTable) String() string\n```\n\n```go\ntype CreateTableOnCommitSetting uint32\n```\nCreateTableOnCommitSetting represents the CREATE TABLE ... ON COMMIT \\\u003caction\u003e parameters.\n\n```go\nconst (\n\t// CreateTableOnCommitUnset indicates that ON COMMIT was unset.\n\tCreateTableOnCommitUnset CreateTableOnCommitSetting = iota\n\t// CreateTableOnCommitPreserveRows indicates that ON COMMIT PRESERVE ROWS was set.\n\tCreateTableOnCommitPreserveRows\n)\n```\n\n```go\ntype CreateTenant struct {\n\tIfNotExists bool\n\tTenantSpec  *TenantSpec\n}\n```\nCreateTenant represents a CREATE VIRTUAL CLUSTER statement.\n\n```go\nfunc (node *CreateTenant) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateTenant) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateTenant) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateTenant) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateTenant) String() string\n```\n\n```go\ntype CreateTenantFromReplication struct {\n\tIfNotExists bool\n\tTenantSpec  *TenantSpec\n\n\t// ReplicationSourceTenantName is the name of the tenant that\n\t// we are replicating into the newly created tenant.\n\t// Note: even though this field can only be a name\n\t// (this is guaranteed during parsing), we still want\n\t// to use the TenantSpec type. This supports the auto-promotion\n\t// of simple identifiers to strings.\n\tReplicationSourceTenantName *TenantSpec\n\t// ReplicationSourceConnUri is the address of the source cluster that we are\n\t// replicating data from.\n\tReplicationSourceConnUri Expr\n\n\tOptions TenantReplicationOptions\n}\n```\nCreateTenantFromReplication represents a CREATE VIRTUAL CLUSTER...FROM REPLICATION statement.\n\n```go\nfunc (node *CreateTenantFromReplication) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateTenantFromReplication) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateTenantFromReplication) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateTenantFromReplication) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateTenantFromReplication) String() string\n```\n\n```go\ntype CreateTrigger struct {\n\tReplace     bool\n\tName        Name\n\tActionTime  TriggerActionTime\n\tEvents      []*TriggerEvent\n\tTableName   *UnresolvedObjectName\n\tTransitions []*TriggerTransition\n\tForEach     TriggerForEach\n\tWhen        Expr\n\tFuncName    *UnresolvedName\n\tFuncArgs    []string\n\n\t// FuncBody is the body of the trigger function with fully-qualified names.\n\t// TODO(#128536): Pass this information through `memo.CreateTriggerExpr`\n\t// instead.\n\tFuncBody string\n}\n```\n\n```go\nfunc (node *CreateTrigger) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateTrigger) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *CreateTrigger) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateTrigger) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateTrigger) String() string\n```\n\n```go\ntype CreateType struct {\n\tTypeName *UnresolvedObjectName\n\tVariety  CreateTypeVariety\n\t// EnumLabels is set when this represents a CREATE TYPE ... AS ENUM statement.\n\tEnumLabels EnumValueList\n\t// CompositeTypeList is set when this represents a CREATE TYPE ... AS ( )\n\t// statement.\n\tCompositeTypeList []CompositeTypeElem\n\t// IfNotExists is true if IF NOT EXISTS was requested.\n\tIfNotExists bool\n}\n```\nCreateType represents a CREATE TYPE statement.\n\n```go\nfunc (node *CreateType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateType) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateType) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*CreateType) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *CreateType) String() string\n```\n\n```go\ntype CreateTypeVariety int\n```\nCreateTypeVariety represents a particular variety of user defined types.\n\n```go\nconst (\n\n\t// Enum represents an ENUM user defined type.\n\tEnum CreateTypeVariety\n\t// Composite represents a composite user defined type.\n\tComposite\n\t// Range represents a RANGE user defined type.\n\tRange\n\t// Base represents a base user defined type.\n\tBase\n\t// Shell represents a shell user defined type.\n\tShell\n\t// Domain represents a DOMAIN user defined type.\n\tDomain\n)\n```\n\n```go\nfunc (i CreateTypeVariety) String() string\n```\n\n```go\ntype CreateView struct {\n\tName         TableName\n\tColumnNames  NameList\n\tAsSource     *Select\n\tIfNotExists  bool\n\tPersistence  Persistence\n\tReplace      bool\n\tMaterialized bool\n\tWithData     bool\n}\n```\nCreateView represents a CREATE VIEW statement.\n\n```go\nfunc (node *CreateView) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*CreateView) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*CreateView) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*CreateView) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *CreateView) String() string\n```\n\n```go\ntype CursorScrollOption int8\n```\nCursorScrollOption represents the scroll option, if one was given, for a DECLARE statement.\n\n```go\nconst (\n\t// UnspecifiedScroll represents no SCROLL option having been given. In\n\t// Postgres, this is like NO SCROLL, but the returned cursor also supports\n\t// some simple cases of backward seeking. For CockroachDB, this is the same\n\t// as NO SCROLL.\n\tUnspecifiedScroll CursorScrollOption = iota\n\t// Scroll represents the SCROLL option. It is supposed to indicate that the\n\t// declared cursor is \"scrollable\", meaning it can be seeked backward.\n\tScroll\n\t// NoScroll represents the NO SCROLL option, which means that the declared\n\t// cursor can only be moved forward.\n\tNoScroll\n)\n```\n\n```go\nfunc (o CursorScrollOption) String() string\n```\n\n```go\ntype CursorSensitivity int\n```\nCursorSensitivity represents the \"sensitivity\" of a cursor, which describes whether it sees writes that occur within the transaction after it was declared. CockroachDB, like Postgres, only supports \"insensitive\" cursors, and all three variants of sensitivity here resolve to insensitive. SENSITIVE cursors are not supported.\n\n```go\nconst (\n\t// UnspecifiedSensitivity indicates that no sensitivity was specified. This\n\t// is the same as INSENSITIVE.\n\tUnspecifiedSensitivity CursorSensitivity = iota\n\t// Insensitive indicates that the cursor is \"insensitive\" to subsequent\n\t// writes, meaning that it sees a snapshot of data from the moment it was\n\t// declared, and won't see subsequent writes within the transaction.\n\tInsensitive\n\t// Asensitive indicates that \"the cursor is implementation dependent\".\n\tAsensitive\n)\n```\n\n```go\nfunc (o CursorSensitivity) String() string\n```\n\n```go\ntype CursorStmt struct {\n\tName      Name\n\tFetchType FetchType\n\tCount     int64\n}\n```\nCursorStmt represents the shared structure between a FETCH and MOVE statement.\n\n```go\nfunc (c CursorStmt) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype DArray struct {\n\tParamTyp *types.T\n\tArray    Datums\n\t// HasNulls is set to true if any of the datums within the array are null.\n\t// This is used in the binary array serialization format.\n\tHasNulls bool\n\t// HasNonNulls is set to true if any of the datums within the are non-null.\n\t// This is used in expression serialization (FmtParsable).\n\tHasNonNulls bool\n\t// contains filtered or unexported fields\n}\n```\nDArray is the array Datum. Any Datum inserted into a DArray are treated as text during serialization.\n\n```go\nfunc AsDArray(e Expr) (*DArray, bool)\n```\nAsDArray attempts to retrieve a \\*DArray from an Expr, returning a \\*DArray and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DArray wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDArray(e Expr) *DArray\n```\nMustBeDArray attempts to retrieve a \\*DArray from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDArray(paramTyp *types.T) *DArray\n```\nNewDArray returns a DArray containing elements of the specified type.\n\n```go\nfunc ParseDArrayFromString(\n\tctx ParseContext, s string, t *types.T,\n) (_ *DArray, dependsOnContext bool, _ error)\n```\nParseDArrayFromString parses the string-form of constructing arrays, handling cases such as \\`'{1,2,3}'::INT\\[]\\`. The input type t is the type of the parameter of the array to parse.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (d *DArray) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DArray) Append(v Datum) error\n```\nAppend appends a Datum to the array, whose parameterized type must be consistent with the type of the Datum.\n\n```go\nfunc (d *DArray) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DArray) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DArray) FirstIndex() int\n```\nFirstIndex returns the first index of the array. 1 for normal SQL arrays, which are 1-indexed, and 0 for the special Postgers vector types which are 0-indexed.\n\n```go\nfunc (d *DArray) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DArray) IsComposite() bool\n```\nIsComposite implements the CompositeDatum interface.\n\n```go\nfunc (d *DArray) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DArray) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DArray) Len() int\n```\nLen returns the length of the Datum array.\n\n```go\nfunc (d *DArray) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DArray) MaybeSetCustomOid(t *types.T) error\n```\nMaybeSetCustomOid checks whether t has a special oid that we want to set into d. Must be kept in sync with DArray.ResolvedType. Returns an error if t is not an array type.\n\n```go\nfunc (d *DArray) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DArray) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DArray) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DArray) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface. Must be kept in sync with DArray.MaybeSetCustomOid.\n\n```go\nfunc (d *DArray) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DArray) String() string\n```\n\n```go\nfunc (d *DArray) TypeCheck(_ context.Context, _ *SemaContext, desired *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DArray) Validate() error\n```\nValidate checks that the given array is valid, for example, that it's not too big.\n\n```go\nfunc (expr *DArray) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DBitArray struct {\n\tbitarray.BitArray\n}\n```\nDBitArray is the BIT/VARBIT Datum.\n\n```go\nfunc AsDBitArray(e Expr) (*DBitArray, bool)\n```\nAsDBitArray attempts to retrieve a \\*DBitArray from an Expr, returning a \\*DBitArray and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions.\n\n```go\nfunc FormatBitArrayToType(d *DBitArray, t *types.T) *DBitArray\n```\nFormatBitArrayToType formats bit arrays such that they fill the total width if too short, or truncate if too long.\n\n```go\nfunc MakeDBitArray(bitLen uint) DBitArray\n```\nMakeDBitArray returns a DBitArray.\n\n```go\nfunc MustBeDBitArray(e Expr) *DBitArray\n```\nMustBeDBitArray attempts to retrieve a DBitArray from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDBitArray(bitLen uint) *DBitArray\n```\nNewDBitArray returns a DBitArray.\n\n```go\nfunc NewDBitArrayFromInt(i int64, width uint) (*DBitArray, error)\n```\nNewDBitArrayFromInt creates a bit array from the specified integer at the specified width. If the width is zero, only positive integers can be converted. If the width is nonzero, the value is truncated to that width. Negative values are encoded using two's complement.\n\n```go\nfunc ParseDBitArray(s string) (*DBitArray, error)\n```\nParseDBitArray parses a string representation of binary digits.\n\n```go\nfunc (*DBitArray) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DBitArray) AsDInt(n uint) *DInt\n```\nAsDInt computes the integer value of the given bit array. The value is assumed to be encoded using two's complement. The result is truncated to the given integer number of bits, if specified. The given width must be 64 or smaller. The results are undefined if n is greater than 64.\n\n```go\nfunc (d *DBitArray) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DBitArray) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DBitArray) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DBitArray) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DBitArray) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DBitArray) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DBitArray) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DBitArray) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DBitArray) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DBitArray) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DBitArray) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DBitArray) String() string\n```\n\n```go\nfunc (d *DBitArray) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DBitArray) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DBool bool\n```\nDBool is the boolean Datum.\n\n```go\nfunc ArrayContains(\n\tctx context.Context, cmpCtx CompareContext, haystack *DArray, needles *DArray,\n) (*DBool, error)\n```\nArrayContains return true if the haystack contains all needles.\n\n```go\nfunc ArrayOverlaps(\n\tctx context.Context, cmpCtx CompareContext, array, other *DArray,\n) (*DBool, error)\n```\nArrayOverlaps return true if there is even one element common between the left and right arrays.\n\n```go\nfunc AsDBool(e Expr) (DBool, bool)\n```\nAsDBool attempts to retrieve a \\*DBool from an Expr, returning a \\*DBool and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions.\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 JSONExistsAny(json DJSON, dArray *DArray) (*DBool, error)\n```\nJSONExistsAny return true if any value in dArray is exist in the json\n\n```go\nfunc MakeDBool(d DBool) *DBool\n```\nMakeDBool converts its argument to a \\*DBool, returning either DBoolTrue or DBoolFalse.\n\n```go\nfunc MustBeDBool(e Expr) DBool\n```\nMustBeDBool attempts to retrieve a DBool from an Expr, panicking if the assertion fails.\n\n```go\nfunc ParseDBool(s string) (*DBool, error)\n```\nParseDBool parses and returns the \\*DBool Datum value represented by the provided string, or an error if parsing is unsuccessful. See [https://github.com/postgres/postgres/blob/90627cf98a8e7d0531789391fd798c9bfcc3bc1a/src/backend/utils/adt/bool.c#L36](https://github.com/postgres/postgres/blob/90627cf98a8e7d0531789391fd798c9bfcc3bc1a/src/backend/utils/adt/bool.c#L36)\n\n```go\nfunc (*DBool) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DBool) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DBool) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DBool) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DBool) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DBool) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DBool) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DBool) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (*DBool) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (*DBool) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DBool) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DBool) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DBool) String() string\n```\n\n```go\nfunc (d *DBool) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DBool) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DBox2D struct {\n\tgeo.CartesianBoundingBox\n}\n```\nDBox2D is the Datum representation of the Box2D type.\n\n```go\nfunc AsDBox2D(e Expr) (*DBox2D, bool)\n```\nAsDBox2D attempts to retrieve a \\*DBox2D from an Expr, returning a \\*DBox2D and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DBox2D wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDBox2D(e Expr) *DBox2D\n```\nMustBeDBox2D attempts to retrieve a \\*DBox2D from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDBox2D(b geo.CartesianBoundingBox) *DBox2D\n```\nNewDBox2D returns a new Box2D Datum.\n\n```go\nfunc ParseDBox2D(str string) (*DBox2D, error)\n```\nParseDBox2D attempts to pass \\`str\\` as a Box2D type.\n\n```go\nfunc (*DBox2D) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DBox2D) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DBox2D) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DBox2D) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DBox2D) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DBox2D) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DBox2D) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DBox2D) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DBox2D) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DBox2D) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DBox2D) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DBox2D) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DBox2D) String() string\n```\n\n```go\nfunc (d *DBox2D) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DBox2D) 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 AsDBytes(e Expr) (DBytes, bool)\n```\nAsDBytes attempts to convert an Expr into a DBytes, returning a flag indicating whether it was successful.\n\n```go\nfunc MustBeDBytes(e Expr) DBytes\n```\nMustBeDBytes attempts to convert an Expr into a DBytes, panicking if unsuccessful.\n\n```go\nfunc NewDBytes(d DBytes) *DBytes\n```\nNewDBytes is a helper routine to create a \\*DBytes initialized from its argument.\n\n```go\nfunc ParseDByte(s string) (*DBytes, error)\n```\nParseDByte parses a string representation of hex encoded binary data. It supports both the hex format, with \"\\\\x\" followed by a string of hexadecimal digits (the \"\\\\x\" prefix occurs just once at the beginning), and the escaped format, which supports \"\\\\\\\\\" and octal escapes.\n\n```go\nfunc (*DBytes) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DBytes) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DBytes) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DBytes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DBytes) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DBytes) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DBytes) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DBytes) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DBytes) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DBytes) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DBytes) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DBytes) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DBytes) String() string\n```\n\n```go\nfunc (d *DBytes) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DBytes) UnsafeBytes() []byte\n```\nUnsafeBytes returns the raw bytes avoiding allocation. It is \"unsafe\" because the contract is that callers must not to mutate the bytes but there is nothing stopping that from happening.\n\n```go\nfunc (expr *DBytes) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DCollatedString struct {\n\tContents string\n\tLocale   string\n\t// Key is the collation key.\n\tKey []byte\n}\n```\nDCollatedString is the Datum for strings with a locale. The struct members are intended to be immutable.\n\n```go\nfunc AsDCollatedString(e Expr) (DCollatedString, bool)\n```\nAsDCollatedString attempts to retrieve a DString from an Expr, returning a AsDCollatedString and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DCollatedString wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc NewDCollatedString(\n\tcontents string, locale string, env *CollationEnvironment,\n) (*DCollatedString, error)\n```\nNewDCollatedString is a helper routine to create a \\*DCollatedString. Panics if locale is invalid. Not safe for concurrent use.\n\n```go\nfunc (*DCollatedString) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) Compare(\n\tctx context.Context, cmpCtx CompareContext, other Datum,\n) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DCollatedString) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DCollatedString) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DCollatedString) IsComposite() bool\n```\nIsComposite implements the CompositeDatum interface.\n\n```go\nfunc (*DCollatedString) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DCollatedString) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DCollatedString) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DCollatedString) String() string\n```\n\n```go\nfunc (d *DCollatedString) TypeCheck(\n\t_ context.Context, _ *SemaContext, _ *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DCollatedString) UnsafeContentBytes() []byte\n```\nUnsafeContentBytes returns the raw bytes avoiding allocation. It is \"unsafe\" because the contract is that callers must not to mutate the bytes but there is nothing stopping that from happening.\n\n```go\nfunc (expr *DCollatedString) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DDate struct {\n\tpgdate.Date\n}\n```\nDDate is the date Datum represented as the number of days after the Unix epoch.\n\n```go\nfunc AsDDate(e Expr) (DDate, bool)\n```\nAsDDate attempts to retrieve a DDate from an Expr, returning a DDate and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DDate wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDDate(d pgdate.Date) DDate\n```\nMakeDDate makes a DDate from a pgdate.Date.\n\n```go\nfunc MustBeDDate(e Expr) DDate\n```\nMustBeDDate attempts to retrieve a DDate from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDDate(d pgdate.Date) *DDate\n```\nNewDDate is a helper routine to create a \\*DDate initialized from its argument.\n\n```go\nfunc NewDDateFromTime(t time.Time) (*DDate, error)\n```\nNewDDateFromTime constructs a \\*DDate from a time.Time.\n\n```go\nfunc ParseDDate(ctx ParseContext, s string) (_ *DDate, dependsOnContext bool, _ error)\n```\nParseDDate parses and returns the \\*DDate Datum value represented by the provided string in the provided location, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (*DDate) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DDate) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DDate) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DDate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DDate) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DDate) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DDate) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DDate) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DDate) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DDate) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DDate) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DDate) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DDate) String() string\n```\n\n```go\nfunc (d *DDate) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DDate) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DDecimal struct {\n\tapd.Decimal\n}\n```\nDDecimal is the decimal Datum.\n\n```go\nvar DecimalOne DDecimal\n```\nDecimalOne represents the constant 1 as DECIMAL.\n\n```go\nfunc AsDDecimal(e Expr) (*DDecimal, bool)\n```\nAsDDecimal attempts to retrieve a DDecimal from an Expr, returning a DDecimal and a flag signifying whether the assertion was successful.\n\n```go\nfunc MustBeDDecimal(e Expr) DDecimal\n```\nMustBeDDecimal attempts to retrieve a DDecimal from an Expr, panicking if the assertion fails.\n\n```go\nfunc ParseDDecimal(s string) (*DDecimal, error)\n```\nParseDDecimal parses and returns the \\*DDecimal Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\n```go\nfunc (*DDecimal) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DDecimal) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DDecimal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DDecimal) IsComposite() bool\n```\nIsComposite implements the CompositeDatum interface.\n\n```go\nfunc (d *DDecimal) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DDecimal) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DDecimal) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DDecimal) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DDecimal) SetString(s string) error\n```\nSetString sets d to s. Any non-standard NaN values are converted to a normal NaN. Any negative zero is converted to positive.\n\n```go\nfunc (d *DDecimal) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DDecimal) String() string\n```\n\n```go\nfunc (d *DDecimal) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DDecimal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DEncodedKey string\n```\nDEncodedKey is a special Datum of types.EncodedKey type, used to pass through encoded key data. It is similar to DBytes, except when it comes to encoding/decoding. It is currently used to pass around inverted index keys, which do not fully encode an object.\n\n```go\nfunc NewDEncodedKey(d DEncodedKey) *DEncodedKey\n```\nNewDEncodedKey is a helper routine to create a \\*DEncodedKey initialized from its argument.\n\n```go\nfunc (*DEncodedKey) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) Compare(\n\tctx context.Context, cmpCtx CompareContext, other Datum,\n) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DEncodedKey) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DEncodedKey) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DEncodedKey) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DEncodedKey) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DEncodedKey) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DEncodedKey) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DEncodedKey) String() string\n```\n\n```go\nfunc (d *DEncodedKey) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DEncodedKey) UnsafeBytes() []byte\n```\nUnsafeBytes returns the raw bytes avoiding allocation. It is \"unsafe\" because the contract is that callers must not to mutate the bytes but there is nothing stopping that from happening.\n\n```go\nfunc (expr *DEncodedKey) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DEnum struct {\n\t// EnumType is the hydrated type of this enum.\n\tEnumTyp *types.T\n\t// PhysicalRep is a slice containing the encodable and ordered physical\n\t// representation of this datum. It is used for comparisons and encoding.\n\tPhysicalRep []byte\n\t// LogicalRep is a string containing the user visible value of the enum.\n\tLogicalRep string\n}\n```\nDEnum represents an ENUM value.\n\n```go\nfunc AsDEnum(e Expr) (*DEnum, bool)\n```\nAsDEnum attempts to retrieve a DEnum from an Expr, returning a DEnum and a flag signifying whether the assertion was successful. The function should // be used instead of direct type assertions wherever a \\*DEnum wrapped by a // \\*DOidWrapper is possible.\n\n```go\nfunc MakeDEnumFromLogicalRepresentation(typ *types.T, rep string) (DEnum, error)\n```\nMakeDEnumFromLogicalRepresentation creates a DEnum of the input type and input logical representation. It returns an error if the input logical representation is invalid.\n\n```go\nfunc MakeDEnumFromPhysicalRepresentation(typ *types.T, rep []byte) (DEnum, error)\n```\nMakeDEnumFromPhysicalRepresentation creates a DEnum of the input type and the input physical representation.\n\n```go\nfunc NewDEnum(e DEnum) *DEnum\n```\nNewDEnum initializes a new DEnum from its argument.\n\n```go\nfunc (d *DEnum) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DEnum) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DEnum) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DEnum) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DEnum) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DEnum) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DEnum) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DEnum) MaxWriteable() (Datum, bool)\n```\nMaxWriteable returns the largest member of the enum that is writeable.\n\n```go\nfunc (d *DEnum) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DEnum) MinWriteable() (Datum, bool)\n```\nMinWriteable returns the smallest member of the enum that is writeable.\n\n```go\nfunc (d *DEnum) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DEnum) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DEnum) ResolvedType() *types.T\n```\nResolvedType implements the Datum interface.\n\n```go\nfunc (d *DEnum) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (d *DEnum) String() string\n```\n\n```go\nfunc (d *DEnum) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DEnum) 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 AsDFloat(e Expr) (*DFloat, bool)\n```\nAsDFloat attempts to retrieve a DFloat from an Expr, returning a DFloat and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DFloat wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDFloat(e Expr) DFloat\n```\nMustBeDFloat attempts to retrieve a DFloat from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDFloat(d DFloat) *DFloat\n```\nNewDFloat is a helper routine to create a \\*DFloat initialized from its argument.\n\n```go\nfunc ParseDFloat(s string) (*DFloat, error)\n```\nParseDFloat parses and returns the \\*DFloat Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\n```go\nfunc (*DFloat) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DFloat) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DFloat) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DFloat) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DFloat) IsComposite() bool\n```\nIsComposite implements the CompositeDatum interface.\n\n```go\nfunc (d *DFloat) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DFloat) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DFloat) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DFloat) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DFloat) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DFloat) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DFloat) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DFloat) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DFloat) String() string\n```\n\n```go\nfunc (d *DFloat) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DFloat) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DGeography struct {\n\tgeo.Geography\n}\n```\nDGeography is the Geometry Datum.\n\n```go\nfunc AsDGeography(e Expr) (*DGeography, bool)\n```\nAsDGeography attempts to retrieve a \\*DGeography from an Expr, returning a \\*DGeography and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DGeography wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDGeography(e Expr) *DGeography\n```\nMustBeDGeography attempts to retrieve a \\*DGeography from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDGeography(g geo.Geography) *DGeography\n```\nNewDGeography returns a new Geography Datum.\n\n```go\nfunc ParseDGeography(str string) (*DGeography, error)\n```\nParseDGeography attempts to pass \\`str\\` as a Geography type.\n\n```go\nfunc (*DGeography) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DGeography) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d *DGeography) DeterministicMemSize() uintptr\n```\nDeterministicMemSize returns size of this DGeography object that will not depend on runtime conditions like pre-allocated slice capacity. This comes at the expense of having less precise information.\n\n```go\nfunc (node *DGeography) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DGeography) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DGeography) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DGeography) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DGeography) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DGeography) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DGeography) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DGeography) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DGeography) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DGeography) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DGeography) String() string\n```\n\n```go\nfunc (d *DGeography) ToJSON(maxDecimalDigits int) (json.JSON, error)\n```\nToJSON converts the DGeography to JSON.\n\n```go\nfunc (d *DGeography) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DGeography) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DGeometry struct {\n\tgeo.Geometry\n}\n```\nDGeometry is the Geometry Datum.\n\n```go\nfunc AsDGeometry(e Expr) (*DGeometry, bool)\n```\nAsDGeometry attempts to retrieve a \\*DGeometry from an Expr, returning a \\*DGeometry and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DGeometry wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDGeometry(e Expr) *DGeometry\n```\nMustBeDGeometry attempts to retrieve a \\*DGeometry from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDGeometry(g geo.Geometry) *DGeometry\n```\nNewDGeometry returns a new Geometry Datum.\n\n```go\nfunc ParseDGeometry(str string) (*DGeometry, error)\n```\nParseDGeometry attempts to pass \\`str\\` as a Geometry type.\n\n```go\nfunc (*DGeometry) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DGeometry) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d *DGeometry) DeterministicMemSize() uintptr\n```\nDeterministicMemSize returns size of this DGeometry object that will not depend on runtime conditions like pre-allocated slice capacity. This comes at the expense of having less precise information.\n\n```go\nfunc (node *DGeometry) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DGeometry) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DGeometry) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DGeometry) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DGeometry) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DGeometry) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DGeometry) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DGeometry) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DGeometry) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DGeometry) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DGeometry) String() string\n```\n\n```go\nfunc (d *DGeometry) ToJSON(maxDecimalDigits int) (json.JSON, error)\n```\nToJSON converts the DGeometry to JSON.\n\n```go\nfunc (d *DGeometry) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DGeometry) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DIPAddr struct {\n\tipaddr.IPAddr\n}\n```\nDIPAddr is the IPAddr Datum.\n\n```go\nfunc AsDIPAddr(e Expr) (DIPAddr, bool)\n```\nAsDIPAddr attempts to retrieve a \\*DIPAddr from an Expr, returning a \\*DIPAddr and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DIPAddr wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDIPAddr(e Expr) DIPAddr\n```\nMustBeDIPAddr attempts to retrieve a DIPAddr from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDIPAddr(d DIPAddr) *DIPAddr\n```\nNewDIPAddr is a helper routine to create a \\*DIPAddr initialized from its argument.\n\n```go\nfunc ParseDIPAddrFromINetString(s string) (*DIPAddr, error)\n```\nParseDIPAddrFromINetString parses and returns the \\*DIPAddr Datum value represented by the provided input INet string, or an error.\n\n```go\nfunc (*DIPAddr) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DIPAddr) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DIPAddr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DIPAddr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DIPAddr) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DIPAddr) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (*DIPAddr) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (*DIPAddr) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DIPAddr) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DIPAddr) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DIPAddr) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DIPAddr) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DIPAddr) String() string\n```\n\n```go\nfunc (d *DIPAddr) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DIPAddr) 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 AsDInt(e Expr) (DInt, bool)\n```\nAsDInt attempts to retrieve a DInt from an Expr, returning a DInt and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DInt wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDInt(e Expr) DInt\n```\nMustBeDInt attempts to retrieve a DInt from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDInt(d DInt) *DInt\n```\nNewDInt is a helper routine to create a \\*DInt initialized from its argument.\n\n```go\nfunc ParseDInt(s string) (*DInt, error)\n```\nParseDInt parses and returns the \\*DInt Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\n```go\nfunc (*DInt) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DInt) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DInt) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DInt) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DInt) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DInt) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DInt) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DInt) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DInt) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DInt) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DInt) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DInt) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DInt) String() string\n```\n\n```go\nfunc (d *DInt) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\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 AsDInterval(e Expr) (*DInterval, bool)\n```\nAsDInterval attempts to retrieve a DInterval from an Expr, returning a DInterval and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DInterval wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDInterval(e Expr) *DInterval\n```\nMustBeDInterval attempts to retrieve a DInterval from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDInterval(d duration.Duration, itm types.IntervalTypeMetadata) *DInterval\n```\nNewDInterval creates a new DInterval.\n\n```go\nfunc ParseDInterval(style duration.IntervalStyle, s string) (*DInterval, error)\n```\nParseDInterval parses and returns the \\*DInterval Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\n```go\nfunc ParseDIntervalWithTypeMetadata(\n\tstyle duration.IntervalStyle, s string, itm types.IntervalTypeMetadata,\n) (*DInterval, error)\n```\nParseDIntervalWithTypeMetadata is like ParseDInterval, but it also takes a types.IntervalTypeMetadata that both specifies the units for unitless, numeric intervals and also specifies the precision of the interval.\n\n```go\nfunc (*DInterval) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DInterval) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DInterval) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DInterval) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DInterval) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DInterval) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DInterval) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DInterval) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DInterval) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DInterval) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DInterval) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DInterval) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DInterval) String() string\n```\n\n```go\nfunc (d *DInterval) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DInterval) ValueAsISO8601String() string\n```\nValueAsISO8601String returns the interval as an ISO 8601 Duration string (e.g. \"P1Y2MT6S\").\n\n```go\nfunc (expr *DInterval) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DJSON struct{ json.JSON }\n```\nDJSON is the JSON Datum.\n\n```go\nfunc AsDJSON(e Expr) (*DJSON, bool)\n```\nAsDJSON attempts to retrieve a \\*DJSON from an Expr, returning a \\*DJSON and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DJSON wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDJSON(e Expr) DJSON\n```\nMustBeDJSON attempts to retrieve a DJSON from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDJSON(j json.JSON) *DJSON\n```\nNewDJSON is a helper routine to create a DJSON initialized from its argument.\n\n```go\nfunc (*DJSON) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DJSON) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DJSON) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DJSON) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DJSON) IsComposite() bool\n```\nIsComposite implements the CompositeDatum interface.\n\n```go\nfunc (d *DJSON) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DJSON) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DJSON) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DJSON) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DJSON) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DJSON) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DJSON) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DJSON) Size() uintptr\n```\nSize implements the Datum interface. TODO(justin): is this a frequently-called method? Should we be caching the computed size?\n\n```go\nfunc (node *DJSON) String() string\n```\n\n```go\nfunc (d *DJSON) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DJSON) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DJsonpath struct {\n\tjsonpath.Jsonpath\n}\n```\nDJsonpath is the Datum representation of the Jsonpath type.\n\n```go\nfunc AsDJsonpath(e Expr) (*DJsonpath, bool)\n```\nAsDJsonpath attempts to retrieve a \\*DJsonpath from an Expr, returning a \\*DJsonpath and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DJsonpath wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDJsonpath(e Expr) DJsonpath\n```\nMustBeDJsonpath attempts to retrieve a DJsonpath from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDJsonpath(d jsonpath.Jsonpath) *DJsonpath\n```\n\n```go\nfunc (*DJsonpath) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface. While we don't support external comparisons between Jsonpath types, we still need to implement Compare because many internal tests rely on it.\n\n```go\nfunc (node *DJsonpath) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DJsonpath) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DJsonpath) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DJsonpath) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DJsonpath) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DJsonpath) String() string\n```\n\n```go\nfunc (d *DJsonpath) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DJsonpath) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DOid struct {\n\t// A DOid embeds a oid.Oid, the underlying integer OID for this OID datum.\n\tOid oid.Oid\n\t// contains filtered or unexported fields\n}\n```\nDOid is the Postgres OID datum. It can represent either an OID type or any of the reg\\* types, such as regproc or regclass. An OID must only be 32 bits, since this width encoding is enforced in the pgwire protocol. OIDs are not guaranteed to be globally unique.\n\n```go\nfunc AsDOid(e Expr) (*DOid, bool)\n```\nAsDOid attempts to retrieve a DOid from an Expr, returning a DOid and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DOid wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDOid(d oid.Oid, semanticType *types.T) DOid\n```\nMakeDOid is a helper routine to create a DOid initialized from a DInt.\n\n```go\nfunc MustBeDOid(e Expr) *DOid\n```\nMustBeDOid attempts to retrieve a DOid from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDOid(d oid.Oid) *DOid\n```\nNewDOid is a helper routine to create a \\*DOid initialized from a DInt.\n\n```go\nfunc NewDOidWithType(d oid.Oid, semanticType *types.T) *DOid\n```\nNewDOidWithType constructs a DOid with the given type and no name.\n\n```go\nfunc NewDOidWithTypeAndName(d oid.Oid, semanticType *types.T, name string) *DOid\n```\nNewDOidWithTypeAndName constructs a DOid with the given type and name.\n\n```go\nfunc ParseDOidAsInt(s string) (*DOid, error)\n```\nParseDOidAsInt parses the input and returns it as an OID. If the input is not formatted as an int, an error is returned.\n\n```go\nfunc (*DOid) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DOid) AsRegProc(name string) *DOid\n```\nAsRegProc changes the input DOid into a regproc with the given name and returns it.\n\n```go\nfunc (d *DOid) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DOid) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DOid) Format(ctx *FmtCtx)\n```\nFormat implements the Datum interface.\n\n```go\nfunc (d *DOid) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DOid) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DOid) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DOid) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DOid) Name() string\n```\nName returns the name associated with this DOid.\n\n```go\nfunc (d *DOid) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DOid) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DOid) ResolvedType() *types.T\n```\nResolvedType implements the Datum interface.\n\n```go\nfunc (d *DOid) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DOid) String() string\n```\n\n```go\nfunc (d *DOid) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DOid) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DOidWrapper struct {\n\tWrapped Datum\n\tOid     oid.Oid\n}\n```\nDOidWrapper is a Datum implementation which is a wrapper around a Datum, allowing custom Oid values to be attached to the Datum and its types.T. The reason the Datum type was introduced was to permit the introduction of Datum types with new Object IDs while maintaining identical behavior to current Datum types. Specifically, it obviates the need to define a new tree.Datum type for each possible Oid value.\n\nInstead, DOidWrapper allows a standard Datum to be wrapped with a new Oid. This approach provides two major advantages:\n\n  - performance of the existing Datum types are not affected because they do not need to have custom oid.Oids added to their structure.\n  - the introduction of new Datum aliases is straightforward and does not require additions to typing rules or type-dependent evaluation behavior.\n\nTypes that currently benefit from DOidWrapper are: - DName =\u003e DOidWrapper(\\*DString, oid.T\\_name) - DRefCursor =\u003e DOidWrapper(\\*DString, oid.T\\_refcursor)\n\n```go\nfunc (d *DOidWrapper) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) Compare(\n\tctx context.Context, cmpCtx CompareContext, other Datum,\n) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DOidWrapper) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DOidWrapper) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DOidWrapper) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DOidWrapper) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DOidWrapper) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DOidWrapper) String() string\n```\n\n```go\nfunc (d *DOidWrapper) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DOidWrapper) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DPGLSN struct {\n\tlsn.LSN\n}\n```\n\n```go\nfunc AsDPGLSN(e Expr) (*DPGLSN, bool)\n```\nAsDPGLSN attempts to retrieve a \\*DPGLSN from an Expr, returning a \\*DPGLSN and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DPGLSN wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDPGLSN(e Expr) *DPGLSN\n```\nMustBeDPGLSN attempts to retrieve a \\*DPGLSN from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDPGLSN(l lsn.LSN) *DPGLSN\n```\nNewDPGLSN returns a new PGLSN Datum.\n\n```go\nfunc ParseDPGLSN(str string) (*DPGLSN, error)\n```\nParseDPGLSN attempts to pass \\`str\\` as a PGLSN type.\n\n```go\nfunc (*DPGLSN) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DPGLSN) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DPGLSN) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DPGLSN) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DPGLSN) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DPGLSN) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DPGLSN) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DPGLSN) String() string\n```\n\n```go\nfunc (d *DPGLSN) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DPGLSN) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DPGVector struct {\n\tvector.T\n}\n```\nDPGVector is the Datum representation of the PGVector type.\n\n```go\nfunc AsDPGVector(e Expr) (*DPGVector, bool)\n```\nAsDPGVector attempts to retrieve a DPGVector from an Expr, returning a DPGVector and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DPGVector wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDPGVector(e Expr) *DPGVector\n```\nMustBeDPGVector attempts to retrieve a DPGVector from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDPGVector(vector vector.T) *DPGVector\n```\nNewDPGVector returns a new PGVector Datum.\n\n```go\nfunc (d *DPGVector) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DPGVector) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\n\n```go\nfunc (node *DPGVector) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DPGVector) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DPGVector) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DPGVector) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DPGVector) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DPGVector) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DPGVector) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DPGVector) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DPGVector) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DPGVector) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (d *DPGVector) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DPGVector) 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 AsDString(e Expr) (DString, bool)\n```\nAsDString attempts to retrieve a DString from an Expr, returning a DString and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DString wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDString(e Expr) DString\n```\nMustBeDString attempts to retrieve a DString from an Expr, panicking if the assertion fails.\n\n```go\nfunc MustBeDStringOrDNull(e Expr) DString\n```\nMustBeDStringOrDNull attempts to retrieve a DString or DNull from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDString(d string) *DString\n```\nNewDString is a helper routine to create a \\*DString initialized from its argument.\n\n```go\nfunc (*DString) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DString) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DString) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DString) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DString) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DString) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DString) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DString) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DString) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DString) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DString) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DString) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DString) String() string\n```\n\n```go\nfunc (d *DString) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (d *DString) UnsafeBytes() []byte\n```\nUnsafeBytes returns the raw bytes avoiding allocation. It is \"Unsafe\" because the contract is that callers must not to mutate the bytes but there is nothing stopping that from happening.\n\n```go\nfunc (expr *DString) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTSQuery struct {\n\ttsearch.TSQuery\n}\n```\nDTSQuery is the tsquery Datum.\n\n```go\nfunc AsDTSQuery(e Expr) (*DTSQuery, bool)\n```\nAsDTSQuery attempts to retrieve a DTSQuery from an Expr, returning a DTSQuery and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTSQuery wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDTSQuery(e Expr) *DTSQuery\n```\nMustBeDTSQuery attempts to retrieve a DTSQuery from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDTSQuery(q tsearch.TSQuery) *DTSQuery\n```\nNewDTSQuery is a helper routine to create a DTSQuery initialized from its argument.\n\n```go\nfunc (d *DTSQuery) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTSQuery) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTSQuery) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTSQuery) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTSQuery) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (d *DTSQuery) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTSQuery) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTSVector struct {\n\ttsearch.TSVector\n}\n```\nDTSVector is the tsvector Datum.\n\n```go\nfunc AsDTSVector(e Expr) (*DTSVector, bool)\n```\nAsDTSVector attempts to retrieve a DTSVector from an Expr, returning a DTSVector and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTSVector wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MustBeDTSVector(e Expr) *DTSVector\n```\nMustBeDTSVector attempts to retrieve a DTSVector from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDTSVector(v tsearch.TSVector) *DTSVector\n```\nNewDTSVector is a helper routine to create a DTSVector initialized from its argument.\n\n```go\nfunc (d *DTSVector) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTSVector) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTSVector) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTSVector) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTSVector) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTSVector) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTSVector) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTSVector) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTSVector) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTSVector) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DTSVector) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTSVector) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (d *DTSVector) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTSVector) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTime timeofday.TimeOfDay\n```\nDTime is the time Datum.\n\n```go\nfunc AsDTime(e Expr) (DTime, bool)\n```\nAsDTime attempts to retrieve a DTime from an Expr, returning a DTimestamp and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTime wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDTime(t timeofday.TimeOfDay) *DTime\n```\nMakeDTime creates a DTime from a TimeOfDay.\n\n```go\nfunc ParseDTime(\n\tctx ParseContext, s string, precision time.Duration,\n) (_ *DTime, dependsOnContext bool, _ error)\n```\nParseDTime parses and returns the \\*DTime Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (*DTime) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTime) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTime) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTime) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTime) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTime) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTime) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTime) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTime) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTime) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DTime) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTime) Round(precision time.Duration) *DTime\n```\nRound returns a new DTime to the specified precision.\n\n```go\nfunc (d *DTime) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DTime) String() string\n```\n\n```go\nfunc (d *DTime) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTime) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTimeTZ struct {\n\ttimetz.TimeTZ\n}\n```\nDTimeTZ is the time with time zone Datum.\n\n```go\nfunc AsDTimeTZ(e Expr) (DTimeTZ, bool)\n```\nAsDTimeTZ attempts to retrieve a DTimeTZ from an Expr, returning a DTimeTZ and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTimeTZ wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc NewDTimeTZ(t timetz.TimeTZ) *DTimeTZ\n```\nNewDTimeTZ creates a DTimeTZ from a timetz.TimeTZ.\n\n```go\nfunc NewDTimeTZFromLocation(t timeofday.TimeOfDay, loc *time.Location) *DTimeTZ\n```\nNewDTimeTZFromLocation creates a DTimeTZ from a TimeOfDay and time.Location.\n\n```go\nfunc NewDTimeTZFromOffset(t timeofday.TimeOfDay, offsetSecs int32) *DTimeTZ\n```\nNewDTimeTZFromOffset creates a DTimeTZ from a TimeOfDay and offset.\n\n```go\nfunc NewDTimeTZFromTime(t time.Time) *DTimeTZ\n```\nNewDTimeTZFromTime creates a DTimeTZ from time.Time.\n\n```go\nfunc ParseDTimeTZ(\n\tctx ParseContext, s string, precision time.Duration,\n) (_ *DTimeTZ, dependsOnContext bool, _ error)\n```\nParseDTimeTZ parses and returns the \\*DTime Datum value represented by the provided string, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (*DTimeTZ) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTimeTZ) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTimeTZ) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTimeTZ) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTimeTZ) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DTimeTZ) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTimeTZ) Round(precision time.Duration) *DTimeTZ\n```\nRound returns a new DTimeTZ to the specified precision.\n\n```go\nfunc (d *DTimeTZ) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DTimeTZ) String() string\n```\n\n```go\nfunc (d *DTimeTZ) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTimeTZ) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTimestamp struct {\n\t// DTimestamp represents a timezoneless date and time value. It is stored in\n\t// the time.Time as if it had UTC location, regardless of what timezone it\n\t// actually represents (which is unknown within the database). See comment\n\t// above ParseTimestampWithoutTimezone for some examples.\n\ttime.Time\n}\n```\nDTimestamp is the timestamp Datum.\n\n```go\nfunc AsDTimestamp(e Expr) (DTimestamp, bool)\n```\nAsDTimestamp attempts to retrieve a DTimestamp from an Expr, returning a DTimestamp and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTimestamp wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDTimestamp(t time.Time, precision time.Duration) (_ *DTimestamp, err error)\n```\nMakeDTimestamp creates a DTimestamp with specified precision.\n\n```go\nfunc MustBeDTimestamp(e Expr) DTimestamp\n```\nMustBeDTimestamp attempts to retrieve a DTimestamp from an Expr, panicking if the assertion fails.\n\n```go\nfunc MustMakeDTimestamp(t time.Time, precision time.Duration) *DTimestamp\n```\nMustMakeDTimestamp wraps MakeDTimestamp but panics if there is an error. This is intended for testing applications only.\n\n```go\nfunc ParseDTimestamp(\n\tctx ParseContext, s string, precision time.Duration,\n) (_ *DTimestamp, dependsOnContext bool, _ error)\n```\nParseDTimestamp parses and returns the \\*DTimestamp Datum value represented by the provided string in UTC, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\nParts of this function are inlined into ParseAndRequireStringHandler, if this changes materially the timestamp case arms there may need to change too.\n\n```go\nfunc (d *DTimestamp) AddTimeZone(\n\tloc *time.Location, precision time.Duration,\n) (*DTimestampTZ, error)\n```\nAddTimeZone uses the supplied location to convert this Timestamp to a timestamp with a timezone. It is the inverse of EvalAtAndRemoveTimeZone.\n\n```go\nfunc (*DTimestamp) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTimestamp) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTimestamp) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTimestamp) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTimestamp) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DTimestamp) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTimestamp) Round(precision time.Duration) (*DTimestamp, error)\n```\nRound returns a new DTimestamp to the specified precision.\n\n```go\nfunc (d *DTimestamp) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DTimestamp) String() string\n```\n\n```go\nfunc (d *DTimestamp) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTimestamp) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTimestampTZ struct {\n\t// Just like time.Time, DTimestampTZ represents an instant in global time that\n\t// is stored internally in UTC and converted to local time when rendering.\n\t//\n\t// Functions that render the TimestampTZ typically take the session time zone\n\t// as an argument and ignore the Time's set location, but we do sometimes set\n\t// the Time's location (e.g. when it comes from ParseDTimestampTZ).\n\ttime.Time\n}\n```\nDTimestampTZ is the timestamp Datum that is rendered with session offset.\n\n```go\nfunc AsDTimestampTZ(e Expr) (DTimestampTZ, bool)\n```\nAsDTimestampTZ attempts to retrieve a DTimestampTZ from an Expr, returning a DTimestampTZ and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTimestamp wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDTimestampTZ(t time.Time, precision time.Duration) (_ *DTimestampTZ, err error)\n```\nMakeDTimestampTZ creates a DTimestampTZ with specified precision.\n\n```go\nfunc MakeDTimestampTZFromDate(loc *time.Location, d *DDate) (*DTimestampTZ, error)\n```\nMakeDTimestampTZFromDate creates a DTimestampTZ from a DDate. This will be equivalent to the midnight of the given zone.\n\n```go\nfunc MustBeDTimestampTZ(e Expr) DTimestampTZ\n```\nMustBeDTimestampTZ attempts to retrieve a DTimestampTZ from an Expr, panicking if the assertion fails.\n\n```go\nfunc MustMakeDTimestampTZ(t time.Time, precision time.Duration) *DTimestampTZ\n```\nMustMakeDTimestampTZ wraps MakeDTimestampTZ but panics if there is an error. This is intended for testing applications only.\n\n```go\nfunc ParseDTimestampTZ(\n\tctx ParseContext, s string, precision time.Duration,\n) (_ *DTimestampTZ, dependsOnContext bool, _ error)\n```\nParseDTimestampTZ parses and returns the \\*DTimestampTZ Datum value represented by the provided string in the provided location, or an error if parsing is unsuccessful.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (*DTimestampTZ) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) Compare(\n\tctx context.Context, cmpCtx CompareContext, other Datum,\n) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DTimestampTZ) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTimestampTZ) EvalAtAndRemoveTimeZone(\n\tloc *time.Location, precision time.Duration,\n) (*DTimestamp, error)\n```\nEvalAtAndRemoveTimeZone evaluates this TimestampTZ as if it were in the supplied location, and then removes the timezone, returning a timestamp without a timezone. This is identical to pgdate.stripTimezone but uses the provided location instead of the DTimestampTZ's location. It is the inverse of AddTimeZone.\n\n```go\nfunc (d *DTimestampTZ) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTimestampTZ) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTimestampTZ) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DTimestampTZ) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTimestampTZ) Round(precision time.Duration) (*DTimestampTZ, error)\n```\nRound returns a new DTimestampTZ to the specified precision.\n\n```go\nfunc (d *DTimestampTZ) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DTimestampTZ) String() string\n```\n\n```go\nfunc (d *DTimestampTZ) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTimestampTZ) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DTuple struct {\n\tD Datums\n\t// contains filtered or unexported fields\n}\n```\nDTuple is the tuple Datum.\n\n```go\nfunc AsDTuple(e Expr) (*DTuple, bool)\n```\nAsDTuple attempts to retrieve a \\*DTuple from an Expr, returning a \\*DTuple and a flag signifying whether the assertion was successful. The function should be used instead of direct type assertions wherever a \\*DTuple wrapped by a \\*DOidWrapper is possible.\n\n```go\nfunc MakeDTuple(typ *types.T, d ...Datum) DTuple\n```\nMakeDTuple creates a DTuple with the provided datums. See NewDTuple.\n\n```go\nfunc MustBeDTuple(e Expr) *DTuple\n```\nMustBeDTuple attempts to retrieve a \\*DTuple from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDTuple(typ *types.T, d ...Datum) *DTuple\n```\nNewDTuple creates a \\*DTuple with the provided datums. When creating a new DTuple with Datums that are known to be sorted in ascending order, chain this call with DTuple.SetSorted.\n\n```go\nfunc NewDTupleWithLen(typ *types.T, l int) *DTuple\n```\nNewDTupleWithLen creates a \\*DTuple with the provided length.\n\n```go\nfunc ParseDTupleFromString(\n\tctx ParseContext, s string, t *types.T,\n) (_ *DTuple, dependsOnContext bool, _ error)\n```\nParseDTupleFromString parses the string-form of constructing tuples, handling cases such as \\`'(1,2,3)'::record\\`. The input type t is the type of the tuple to parse.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc (*DTuple) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DTuple) AssertSorted()\n```\nAssertSorted asserts that the DTuple is sorted.\n\n```go\nfunc (d *DTuple) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (d *DTuple) ContainsNull() bool\n```\nContainsNull returns true if the tuple contains NULL, possibly nested inside other tuples. For example, all the following tuples contain NULL:\n\n\t(1, 2, NULL)\n\t((1, 1), (2, NULL))\n\t(((1, 1), (2, 2)), ((3, 3), (4, NULL)))\n\n```go\nfunc (node *DTuple) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DTuple) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DTuple) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DTuple) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DTuple) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DTuple) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DTuple) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DTuple) Normalize(ctx context.Context, cmpCtx CompareContext)\n```\nNormalize sorts and uniques the datum tuple.\n\n```go\nfunc (d *DTuple) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (d *DTuple) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DTuple) SearchSorted(\n\tctx context.Context, cmpCtx CompareContext, target Datum,\n) (int, bool)\n```\nSearchSorted searches the tuple for the target Datum, returning an int with the same contract as sort.Search and a boolean flag signifying whether the datum was found. It assumes that the DTuple is sorted and panics if it is not.\n\nThe target Datum cannot be NULL or a DTuple that contains NULLs (we cannot binary search in this case; for example \\`(1, NULL) IN ((1, 2), ..)\\` needs to be\n\n```go\nfunc (d *DTuple) SetSorted() *DTuple\n```\nSetSorted sets the sorted flag on the DTuple. This should be used when a DTuple is known to be sorted based on the datums added to it.\n\n```go\nfunc (d *DTuple) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (d *DTuple) Sorted() bool\n```\nSorted returns true if the tuple is known to be sorted (and contains no NULLs).\n\n```go\nfunc (node *DTuple) String() string\n```\n\n```go\nfunc (d *DTuple) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DTuple) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DUuid struct {\n\tuuid.UUID\n}\n```\nDUuid is the UUID Datum.\n\n```go\nfunc AsDUuid(e Expr) (DUuid, bool)\n```\nAsDUuid attempts to retrieve a DUuid from an Expr, returning a DUuid and a flag signifying whether the assertion was successful.\n\n```go\nfunc MustBeDUuid(e Expr) DUuid\n```\nMustBeDUuid attempts to retrieve a DUuid from an Expr, panicking if the assertion fails.\n\n```go\nfunc NewDUuid(d DUuid) *DUuid\n```\nNewDUuid is a helper routine to create a \\*DUuid initialized from its argument.\n\n```go\nfunc ParseDUuidFromBytes(b []byte) (*DUuid, error)\n```\nParseDUuidFromBytes parses and returns the \\*DUuid Datum value represented by the provided input bytes, or an error.\n\n```go\nfunc ParseDUuidFromString(s string) (*DUuid, error)\n```\nParseDUuidFromString parses and returns the \\*DUuid Datum value represented by the provided input string, or an error.\n\n```go\nfunc (*DUuid) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DUuid) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DUuid) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DUuid) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DUuid) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DUuid) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (*DUuid) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (*DUuid) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DUuid) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DUuid) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DUuid) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DUuid) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DUuid) String() string\n```\n\n```go\nfunc (d *DUuid) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DUuid) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DVoid struct{}\n```\nDVoid represents a void type.\n\n```go\nfunc (*DVoid) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *DVoid) Compare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *DVoid) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (d *DVoid) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *DVoid) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *DVoid) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *DVoid) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *DVoid) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *DVoid) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *DVoid) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (*DVoid) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *DVoid) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *DVoid) String() string\n```\n\n```go\nfunc (d *DVoid) TypeCheck(_ context.Context, _ *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface. It is implemented as an idempotent identity function for Datum.\n\n```go\nfunc (expr *DVoid) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype DataPlacement uint32\n```\nDataPlacement represents the desired data placement strategy for a given database.\n\n```go\nconst (\n\t// DataPlacementUnspecified indicates an unspecified placement policy.\n\t// This will get translated to the default value when persisted.\n\tDataPlacementUnspecified DataPlacement = iota\n\t// DataPlacementDefault indicates specified default data placement policy,\n\tDataPlacementDefault\n\t// DataPlacementRestricted indicates the database will not use non-voters for\n\t// REGIONAL BY [TABLE | ROW] tables.\n\tDataPlacementRestricted\n)\n```\n\n```go\nfunc (node *DataPlacement) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *DataPlacement) TelemetryName() string\n```\nTelemetryName returns a representation of DataPlacement suitable for telemetry.\n\n```go\ntype Datum interface {\n\tTypedExpr\n\n\t// AmbiguousFormat indicates whether the result of formatting this Datum can\n\t// be interpreted into more than one type. Used with\n\t// fmtFlags.disambiguateDatumTypes.\n\tAmbiguousFormat() bool\n\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'. Compare is safe\n\t// to use with a nil eval.Context and results in default behavior, except for\n\t// when comparing tree.Placeholder datums.\n\tCompare(ctx context.Context, cmpCtx CompareContext, other Datum) (int, error)\n\n\t// Prev returns the previous datum and true, if one exists, or nil and false.\n\t// The previous datum satisfies the following definition: if the receiver is\n\t// \"b\" and the returned datum is \"a\", then for every compatible datum \"x\", it\n\t// holds that \"x \u003c b\" is true if and only if \"x \u003c= a\" is true.\n\t//\n\t// The return value is undefined if IsMin(_ *EvalContext) returns true.\n\t//\n\t// TODO(#12022): for DTuple, the contract is actually that \"x \u003c b\" (SQL order,\n\t// where NULL \u003c x is unknown for all x) is true only if \"x \u003c= a\"\n\t// (.Compare/encoding order, where NULL \u003c= x is true for all x) is true. This\n\t// is okay for now: the returned datum is used only to construct a span, which\n\t// uses .Compare/encoding order and is guaranteed to be large enough by this\n\t// weaker contract. The original filter expression is left in place to catch\n\t// false positives.\n\tPrev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n\n\t// IsMin returns true if the datum is equal to the minimum value the datum\n\t// type can hold.\n\tIsMin(ctx context.Context, cmpCtx CompareContext) bool\n\n\t// Next returns the next datum and true, if one exists, or nil and false\n\t// otherwise. The next datum satisfies the following definition: if the\n\t// receiver is \"a\" and the returned datum is \"b\", then for every compatible\n\t// datum \"x\", it holds that \"x \u003e a\" is true if and only if \"x \u003e= b\" is true.\n\t//\n\t// The return value is undefined if IsMax(_ *EvalContext) returns true.\n\t//\n\t// TODO(#12022): for DTuple, the contract is actually that \"x \u003e a\" (SQL order,\n\t// where x \u003e NULL is unknown for all x) is true only if \"x \u003e= b\"\n\t// (.Compare/encoding order, where x \u003e= NULL is true for all x) is true. This\n\t// is okay for now: the returned datum is used only to construct a span, which\n\t// uses .Compare/encoding order and is guaranteed to be large enough by this\n\t// weaker contract. The original filter expression is left in place to catch\n\t// false positives.\n\tNext(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n\n\t// IsMax returns true if the datum is equal to the maximum value the datum\n\t// type can hold.\n\tIsMax(ctx context.Context, cmpCtx CompareContext) bool\n\n\t// Max returns the upper value and true, if one exists, otherwise\n\t// nil and false. Used By Prev().\n\tMax(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n\n\t// Min returns the lower value, if one exists, otherwise nil and\n\t// false. Used by Next().\n\tMin(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n\n\t// Size returns a lower bound on the total size of the receiver in bytes,\n\t// including memory that is pointed at (even if shared between Datum\n\t// instances) but excluding allocation overhead.\n\t//\n\t// It holds for every Datum d that d.Size().\n\tSize() uintptr\n}\n```\nDatum represents a SQL value.\n\n```go\nfunc AdjustValueToType(typ *types.T, inVal Datum) (outVal Datum, err error)\n```\nAdjustValueToType checks that the width (for strings, byte arrays, and bit strings) and scale (decimal). and, shape/srid (for geospatial types) fits the specified column type.\n\nAdditionally, some precision truncation may occur for the specified column type.\n\nIn case of decimals, it can truncate fractional digits in the input value in order to fit the target column. If the input value fits the target column, it is returned unchanged. If the input value can be truncated to fit, then a truncated copy is returned. Otherwise, an error is returned.\n\nIn the case of time, it can truncate fractional digits of time datums to its relevant rounding for the given type definition.\n\nIn the case of geospatial types, it will check whether the SRID and Shape in the datum matches the type definition.\n\nThis method is used by casts and parsing. It is important to note that this function will error if the given value is too wide for the given type. For explicit casts and parsing, inVal should be truncated before this function is called so that an error is not returned. For assignment casts, inVal should not be truncated before this function is called, so that an error is returned. The one exception for assignment casts is for the special \"char\" type. An assignment cast to \"char\" does not error and truncates a value if the width of the value is wider than a single character. For this exception, AdjustValueToType performs the truncation itself.\n\n```go\nfunc AppendToMaybeNullArray(typ *types.T, left Datum, right Datum) (Datum, error)\n```\nAppendToMaybeNullArray appends an element to an array. If the first argument is NULL, an array of one element is created.\n\n```go\nfunc ConcatArrays(typ *types.T, left Datum, right Datum) (Datum, error)\n```\nConcatArrays concatenates two arrays.\n\n```go\nfunc DatumNext(\n\tctx context.Context, datum Datum, cmpCtx CompareContext, collationEnv *CollationEnvironment,\n) (Datum, bool)\n```\nDatumNext returns a datum that is \"next\" to the given one. For many types it just delegates to Datum.Next, but for some types that don't have an implementation of that function this method makes the best effort to come up with a reasonable next datum that is greater than the given one.\n\nThe return value is undefined if Datum.IsMax returns true or if the value is NaN or an infinity (for floats and decimals).\n\n```go\nfunc DatumPrev(\n\tctx context.Context, datum Datum, cmpCtx CompareContext, collationEnv *CollationEnvironment,\n) (Datum, bool)\n```\nDatumPrev returns a datum that is \"previous\" to the given one. For many types it just delegates to Datum.Prev, but for some types that don't have an implementation of that function this method makes the best effort to come up with a reasonable previous datum that is smaller than the given one.\n\nThe return value is undefined if Datum.IsMin returns true or if the value is NaN or an infinity (for floats and decimals).\n\n```go\nfunc MakeAllDEnumsInType(typ *types.T) []Datum\n```\nMakeAllDEnumsInType generates a slice of all values in an enum.\n\n```go\nfunc MakeDJSON(d interface{}) (Datum, error)\n```\nMakeDJSON returns a JSON value given a Go-style representation of JSON. \\* JSON null is Go \\`nil\\`, \\* JSON true is Go \\`true\\`, \\* JSON false is Go \\`false\\`, \\* JSON numbers are json.Number | int | int64 | float64, \\* JSON string is a Go string, \\* JSON array is a Go \\[]interface{}, \\* JSON object is a Go map\\[string]interface{}.\n\n```go\nfunc NewDIntVectorFromDArray(d *DArray) Datum\n```\nNewDIntVectorFromDArray is a helper routine to create a new \\*DArray, initialized from an existing \\*DArray, with the special oid for IntVector.\n\n```go\nfunc NewDName(d string) Datum\n```\nNewDName is a helper routine to create a \\*DName (implemented as a \\*DOidWrapper) initialized from a string.\n\n```go\nfunc NewDNameFromDString(d *DString) Datum\n```\nNewDNameFromDString is a helper routine to create a \\*DName (implemented as a \\*DOidWrapper) initialized from an existing \\*DString.\n\n```go\nfunc NewDOidVectorFromDArray(d *DArray) Datum\n```\nNewDOidVectorFromDArray is a helper routine to create a new \\*DArray, initialized from an existing \\*DArray, with the special oid for OidVector.\n\n```go\nfunc NewDRefCursor(d string) Datum\n```\nNewDRefCursor is a helper routine to create a \\*DRefCursor (implemented as a \\*DOidWrapper) initialized from a string.\n\n```go\nfunc NewDRefCursorFromDString(d *DString) Datum\n```\nNewDRefCursorFromDString is a helper routine to create a \\*DRefCursor (implemented as a \\*DOidWrapper) initialized from an existing \\*DString.\n\n```go\nfunc NewDefaultDatum(collationEnv *CollationEnvironment, t *types.T) (d Datum, err error)\n```\nNewDefaultDatum returns a default non-NULL datum value for the given type. This is used when updating non-NULL columns that are being added or dropped from a table, and there is no user-defined DEFAULT value available.\n\n```go\nfunc ParseAndRequireString(\n\tt *types.T, s string, ctx ParseContext,\n) (d Datum, dependsOnContext bool, err error)\n```\nParseAndRequireString parses s as type t for simple types.\n\nThe dependsOnContext return value indicates if we had to consult the ParseContext (either for the time or the local timezone).\n\n```go\nfunc ParseDJSON(s string) (Datum, error)\n```\nParseDJSON takes a string of JSON and returns a DJSON value.\n\n```go\nfunc ParseDJsonpath(s string) (Datum, error)\n```\n\n```go\nfunc ParseDPGVector(s string) (Datum, error)\n```\nParseDPGVector takes a string of PGVector and returns a DPGVector value.\n\n```go\nfunc ParseDTSQuery(s string) (Datum, error)\n```\nParseDTSQuery takes a string of TSQuery and returns a DTSQuery value.\n\n```go\nfunc ParseDTSVector(s string) (Datum, error)\n```\nParseDTSVector takes a string of TSVector and returns a DTSVector value.\n\n```go\nfunc PrependToMaybeNullArray(typ *types.T, left Datum, right Datum) (Datum, error)\n```\nPrependToMaybeNullArray prepends an element in the front of an arrray. If the argument is NULL, an array of one element is created.\n\n```go\nfunc SampleDatum(t *types.T) Datum\n```\nSampleDatum is intended to be a more lightweight version of RandDatum for when you just need one consistent example of a datum.\n\n```go\nfunc UnwrapDOidWrapper(d Datum) Datum\n```\nUnwrapDOidWrapper exposes the wrapped datum from a \\*DOidWrapper.\n\n```go\ntype DatumAlloc struct {\n\n\t// DefaultAllocSize determines the number of objects allocated whenever we've used\n\t// up previously allocated ones. This field is exported so that the caller\n\t// could adjust it dynamically. If it is left unchanged by the caller, then\n\t// it will be set to defaultDatumAllocSize automatically.\n\tDefaultAllocSize int\n\t// contains filtered or unexported fields\n}\n```\nDatumAlloc provides batch allocation of datum pointers, amortizing the cost of the allocations. nil value can be used to indicate that no batching is needed. NOTE: it \\*must\\* be passed in by a pointer.\n\n```go\nfunc (a *DatumAlloc) AddTypeAllocSize(size int, t types.Family)\n```\nAddTypeAllocSize adds the given size to the allocation size for the given type family.\n\n```go\nfunc (a *DatumAlloc) DoneInitNewDGeo(so *geopb.SpatialObject)\n```\nDoneInitNewDGeo is called after unmarshalling a SpatialObject allocated via NewDGeographyEmpty/NewDGeometryEmpty, to return space to the DatumAlloc.\n\n```go\nfunc (a *DatumAlloc) NewDBitArray(v DBitArray) *DBitArray\n```\nNewDBitArray allocates a DBitArray.\n\n```go\nfunc (a *DatumAlloc) NewDBox2D(v DBox2D) *DBox2D\n```\nNewDBox2D allocates a DBox2D.\n\n```go\nfunc (a *DatumAlloc) NewDBytes(v DBytes) *DBytes\n```\nNewDBytes allocates a DBytes.\n\n```go\nfunc (a *DatumAlloc) NewDCollatedString(contents string, locale string) (*DCollatedString, error)\n```\nNewDCollatedString allocates a DCollatedString.\n\n```go\nfunc (a *DatumAlloc) NewDDate(v DDate) *DDate\n```\nNewDDate allocates a DDate.\n\n```go\nfunc (a *DatumAlloc) NewDDecimal(v DDecimal) *DDecimal\n```\nNewDDecimal allocates a DDecimal.\n\n```go\nfunc (a *DatumAlloc) NewDEncodedKey(v DEncodedKey) *DEncodedKey\n```\nNewDEncodedKey allocates a DEncodedKey.\n\n```go\nfunc (a *DatumAlloc) NewDEnum(v DEnum) *DEnum\n```\nNewDEnum allocates a DEnum.\n\n```go\nfunc (a *DatumAlloc) NewDFloat(v DFloat) *DFloat\n```\nNewDFloat allocates a DFloat.\n\n```go\nfunc (a *DatumAlloc) NewDGeography(v DGeography) *DGeography\n```\nNewDGeography allocates a DGeography.\n\n```go\nfunc (a *DatumAlloc) NewDGeographyEmpty() *DGeography\n```\nNewDGeographyEmpty allocates a new empty DGeography for unmarshalling. After unmarshalling, DoneInitNewDGeo must be called to return unused pre-allocated space to the DatumAlloc.\n\n```go\nfunc (a *DatumAlloc) NewDGeometry(v DGeometry) *DGeometry\n```\nNewDGeometry allocates a DGeometry.\n\n```go\nfunc (a *DatumAlloc) NewDGeometryEmpty() *DGeometry\n```\nNewDGeometryEmpty allocates a new empty DGeometry for unmarshalling. After unmarshalling, DoneInitNewDGeo must be called to return unused pre-allocated space to the DatumAlloc.\n\n```go\nfunc (a *DatumAlloc) NewDIPAddr(v DIPAddr) *DIPAddr\n```\nNewDIPAddr allocates a DIPAddr.\n\n```go\nfunc (a *DatumAlloc) NewDInt(v DInt) *DInt\n```\nNewDInt allocates a DInt.\n\n```go\nfunc (a *DatumAlloc) NewDInterval(v DInterval) *DInterval\n```\nNewDInterval allocates a DInterval.\n\n```go\nfunc (a *DatumAlloc) NewDJSON(v DJSON) *DJSON\n```\nNewDJSON allocates a DJSON.\n\n```go\nfunc (a *DatumAlloc) NewDJsonpath(v DJsonpath) *DJsonpath\n```\n\n```go\nfunc (a *DatumAlloc) NewDName(v DString) Datum\n```\nNewDName allocates a DName.\n\n```go\nfunc (a *DatumAlloc) NewDOid(v DOid) Datum\n```\nNewDOid allocates a DOid.\n\n```go\nfunc (a *DatumAlloc) NewDPGLSN(v DPGLSN) *DPGLSN\n```\nNewDPGLSN allocates a DPGLSN.\n\n```go\nfunc (a *DatumAlloc) NewDRefCursor(v DString) Datum\n```\nNewDRefCursor allocates a DRefCursor.\n\n```go\nfunc (a *DatumAlloc) NewDString(v DString) *DString\n```\nNewDString allocates a DString.\n\n```go\nfunc (a *DatumAlloc) NewDTime(v DTime) *DTime\n```\nNewDTime allocates a DTime.\n\n```go\nfunc (a *DatumAlloc) NewDTimeTZ(v DTimeTZ) *DTimeTZ\n```\nNewDTimeTZ allocates a DTimeTZ.\n\n```go\nfunc (a *DatumAlloc) NewDTimestamp(v DTimestamp) *DTimestamp\n```\nNewDTimestamp allocates a DTimestamp.\n\n```go\nfunc (a *DatumAlloc) NewDTimestampTZ(v DTimestampTZ) *DTimestampTZ\n```\nNewDTimestampTZ allocates a DTimestampTZ.\n\n```go\nfunc (a *DatumAlloc) NewDTuple(v DTuple) *DTuple\n```\nNewDTuple allocates a DTuple.\n\n```go\nfunc (a *DatumAlloc) NewDUuid(v DUuid) *DUuid\n```\nNewDUuid allocates a DUuid.\n\n```go\nfunc (a *DatumAlloc) NewDVoid() *DVoid\n```\nNewDVoid allocates a new DVoid.\n\n```go\nfunc (a *DatumAlloc) NewDatums(num int) Datums\n```\nNewDatums allocates Datums of the specified size.\n\n```go\nfunc (a *DatumAlloc) ResetTypeAllocSizes()\n```\nResetTypeAllocSizes resets the type-specific allocation sizes.\n\n```go\ntype Datums []Datum\n```\nDatums is a slice of Datum values.\n\n```go\nfunc (d Datums) Compare(ctx context.Context, evalCtx CompareContext, other Datums) int\n```\nCompare does a lexicographical comparison and returns -1 if the receiver is less than other, 0 if receiver is equal to other and +1 if receiver is greater than other.\n\n```go\nfunc (d *Datums) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d Datums) Len() int\n```\nLen returns the number of Datum values.\n\n```go\nfunc (node *Datums) String() string\n```\n\n```go\ntype Deallocate struct {\n\tName Name // empty for ALL\n}\n```\nDeallocate represents a DEALLOCATE statement.\n\n```go\nfunc (node *Deallocate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Deallocate) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *Deallocate) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Deallocate) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Deallocate) String() string\n```\n\n```go\ntype DeclareCursor struct {\n\tName        Name\n\tSelect      *Select\n\tBinary      bool\n\tScroll      CursorScrollOption\n\tSensitivity CursorSensitivity\n\tHold        bool\n}\n```\nDeclareCursor represents a DECLARE statement.\n\n```go\nfunc (node *DeclareCursor) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *DeclareCursor) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DeclareCursor) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DeclareCursor) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DeclareCursor) String() string\n```\n\n```go\ntype DefaultVal struct{}\n```\nDefaultVal represents the DEFAULT expression.\n\n```go\nfunc (node *DefaultVal) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node DefaultVal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (DefaultVal) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (node DefaultVal) String() string\n```\n\n```go\nfunc (expr DefaultVal) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, 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 DeferrableMode int\n```\nDeferrableMode holds the deferrable mode for a transaction.\n\n```go\nconst (\n\tUnspecifiedDeferrableMode DeferrableMode = iota\n\tDeferrable\n\tNotDeferrable\n)\n```\nDeferrableMode values.\n\n```go\nfunc (d DeferrableMode) String() string\n```\n\n```go\ntype Delete struct {\n\tBatch     *Batch\n\tWith      *With\n\tTable     TableExpr\n\tWhere     *Where\n\tOrderBy   OrderBy\n\tUsing     TableExprs\n\tLimit     *Limit\n\tReturning ReturningClause\n}\n```\nDelete represents a DELETE statement.\n\n```go\nfunc (node *Delete) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *Delete) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Delete) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Delete) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Delete) String() string\n```\n\n```go\ntype DescriptorCoverage int32\n```\nDescriptorCoverage specifies the subset of descriptors that are requested during a backup or a restore.\n\n```go\nconst (\n\t// RequestedDescriptors table coverage means that the backup is not\n\t// guaranteed to have all of the cluster data. This can be accomplished by\n\t// backing up a specific subset of tables/databases. Note that even if all\n\t// of the tables and databases have been included in the backup manually, a\n\t// backup is not said to have complete table coverage unless it was created\n\t// by a `BACKUP TO` command.\n\tRequestedDescriptors DescriptorCoverage = iota\n\n\t// AllDescriptors table coverage means that backup is guaranteed to have all the\n\t// relevant data in the cluster. These can only be created by running a\n\t// full cluster backup with `BACKUP TO`.\n\tAllDescriptors\n\n\t// SystemUsers coverage indicates that only the system.users\n\t// table will be restored from the backup.\n\tSystemUsers\n)\n```\n\n```go\ntype DesiredObjectKind byte\n```\nDesiredObjectKind represents what kind of object is desired in a name resolution attempt.\n\n```go\nconst (\n\n\t// TableObject is used when a table-like object is desired from resolution.\n\tTableObject DesiredObjectKind\n\t// TypeObject is used when a type-like object is desired from resolution.\n\tTypeObject\n\t// AnyObject is used when any object is acceptable. This is primary used when\n\t// looking for name conflicts.\n\tAnyObject\n)\n```\n\n```go\ntype Direction int8\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 Discard struct {\n\tMode DiscardMode\n}\n```\nDiscard represents a DISCARD statement.\n\n```go\nfunc (node *Discard) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Discard) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (d *Discard) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Discard) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Discard) String() string\n```\nString implements the Statement interface.\n\n```go\ntype DiscardMode int\n```\nDiscardMode is an enum of the various discard modes.\n\n```go\nconst (\n\t// DiscardModeAll represents a DISCARD ALL statement.\n\tDiscardModeAll DiscardMode = iota\n\n\t// DiscardModeSequences represents a DISCARD SEQUENCES statement\n\tDiscardModeSequences\n\n\t// DiscardModeTemp represents a DISCARD TEMPORARY statement\n\tDiscardModeTemp\n)\n```\n\n```go\ntype DistanceVectorOp struct{}\n```\nDistanceVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *DistanceVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DistinctOn []Expr\n```\nDistinctOn represents a DISTINCT ON clause.\n\n```go\nfunc (node *DistinctOn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype DivDecimalIntOp struct{}\n```\nDivDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivDecimalOp struct{}\n```\nDivDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivFloatOp struct{}\n```\nDivFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivIntDecimalOp struct{}\n```\nDivIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivIntOp struct{}\n```\nDivIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivIntervalFloatOp struct{}\n```\nDivIntervalFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivIntervalFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DivIntervalIntOp struct{}\n```\nDivIntervalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *DivIntervalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype DoBlock struct {\n\tCode DoBlockBody\n}\n```\nDoBlock represents a SQL DO statement. It can only exist as a top-level statement.\n\n```go\nfunc (n *DoBlock) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DoBlock) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DoBlock) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DoBlock) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DoBlock) String() string\n```\n\n```go\ntype DoBlockBody interface {\n\tNodeFormatter\n\tVisitBody(v Visitor) DoBlockBody\n\tIsDoBlockBody()\n}\n```\nDoBlockBody represents the fully parsed code body of a DO statement. It currently maps to plpgsqltree.DoBlock.\n\n```go\ntype DoBlockOption interface {\n\t// contains filtered or unexported methods\n}\n```\nDoBlockOption is an interface representing DO statement properties.\n\n```go\ntype DoBlockOptions []DoBlockOption\n```\nDoBlockOptions represent a list of options for a DO statement.\n\n```go\ntype DropBehavior int\n```\nDropBehavior represents options for dropping schema elements.\n\n```go\nconst (\n\tDropDefault DropBehavior = iota\n\tDropRestrict\n\tDropCascade\n)\n```\nDropBehavior values.\n\n```go\nfunc (d DropBehavior) String() string\n```\n\n```go\ntype DropDatabase struct {\n\tName         Name\n\tIfExists     bool\n\tDropBehavior DropBehavior\n}\n```\nDropDatabase represents a DROP DATABASE statement.\n\n```go\nfunc (node *DropDatabase) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropDatabase) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *DropDatabase) String() string\n```\n\n```go\ntype DropExternalConnection struct {\n\tConnectionLabel Expr\n}\n```\nDropExternalConnection represents a DROP EXTERNAL CONNECTION statement.\n\n```go\nfunc (node *DropExternalConnection) Format(ctx *FmtCtx)\n```\nFormat implements the Statement interface.\n\n```go\nfunc (*DropExternalConnection) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropExternalConnection) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropExternalConnection) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropExternalConnection) String() string\n```\n\n```go\ntype DropIndex struct {\n\tIndexList    TableIndexNames\n\tIfExists     bool\n\tDropBehavior DropBehavior\n\tConcurrently bool\n}\n```\nDropIndex represents a DROP INDEX statement.\n\n```go\nfunc (node *DropIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropIndex) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *DropIndex) String() string\n```\n\n```go\ntype DropOwnedBy struct {\n\tRoles        RoleSpecList\n\tDropBehavior DropBehavior\n}\n```\nDropOwnedBy represents a DROP OWNED BY command.\n\n```go\nfunc (node *DropOwnedBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropOwnedBy) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropOwnedBy) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropOwnedBy) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropOwnedBy) String() string\n```\n\n```go\ntype DropPolicy struct {\n\tPolicyName   Name\n\tTableName    *UnresolvedObjectName\n\tDropBehavior DropBehavior\n\tIfExists     bool\n}\n```\nDropPolicy is a tree struct for the DROP POLICY DDL statement\n\n```go\nfunc (node *DropPolicy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropPolicy) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropPolicy) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropPolicy) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropPolicy) String() string\n```\n\n```go\ntype DropRole struct {\n\tNames    RoleSpecList\n\tIsRole   bool\n\tIfExists bool\n}\n```\nDropRole represents a DROP ROLE statement\n\n```go\nfunc (node *DropRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropRole) String() string\n```\n\n```go\ntype DropRoutine struct {\n\tIfExists     bool\n\tProcedure    bool\n\tRoutines     RoutineObjs\n\tDropBehavior DropBehavior\n}\n```\nDropRoutine represents a DROP FUNCTION or DROP PROCEDURE statement.\n\n```go\nfunc (node *DropRoutine) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropRoutine) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *DropRoutine) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropRoutine) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropRoutine) String() string\n```\n\n```go\ntype DropSchema struct {\n\tNames        ObjectNamePrefixList\n\tIfExists     bool\n\tDropBehavior DropBehavior\n}\n```\nDropSchema represents a DROP SCHEMA command.\n\n```go\nfunc (node *DropSchema) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropSchema) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropSchema) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*DropSchema) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropSchema) String() string\n```\n\n```go\ntype DropSequence struct {\n\tNames        TableNames\n\tIfExists     bool\n\tDropBehavior DropBehavior\n}\n```\nDropSequence represents a DROP SEQUENCE statement.\n\n```go\nfunc (node *DropSequence) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropSequence) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropSequence) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropSequence) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropSequence) String() string\n```\n\n```go\ntype DropTable struct {\n\tNames        TableNames\n\tIfExists     bool\n\tDropBehavior DropBehavior\n}\n```\nDropTable represents a DROP TABLE statement.\n\n```go\nfunc (node *DropTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropTable) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *DropTable) String() string\n```\n\n```go\ntype DropTenant struct {\n\tTenantSpec *TenantSpec\n\tIfExists   bool\n\tImmediate  bool\n}\n```\nDropTenant represents a DROP VIRTUAL CLUSTER command.\n\n```go\nfunc (node *DropTenant) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropTenant) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropTenant) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*DropTenant) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropTenant) String() string\n```\n\n```go\ntype DropTrigger struct {\n\tIfExists     bool\n\tTrigger      Name\n\tTable        *UnresolvedObjectName\n\tDropBehavior DropBehavior\n}\n```\nDropTrigger represents a DROP TRIGGER statement.\n\n```go\nfunc (node *DropTrigger) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropTrigger) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *DropTrigger) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropTrigger) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropTrigger) String() string\n```\n\n```go\ntype DropType struct {\n\tNames        []*UnresolvedObjectName\n\tIfExists     bool\n\tDropBehavior DropBehavior\n}\n```\nDropType represents a DROP TYPE command.\n\n```go\nfunc (node *DropType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropType) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropType) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropType) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropType) String() string\n```\n\n```go\ntype DropView struct {\n\tNames          TableNames\n\tIfExists       bool\n\tDropBehavior   DropBehavior\n\tIsMaterialized bool\n}\n```\nDropView represents a DROP VIEW statement.\n\n```go\nfunc (node *DropView) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*DropView) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*DropView) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*DropView) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *DropView) String() string\n```\n\n```go\ntype EnumValue string\n```\nEnumValue represents a single enum value.\n\n```go\nfunc (n *EnumValue) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype EnumValueList []EnumValue\n```\nEnumValueList represents a list of enum values.\n\n```go\nfunc (l *EnumValueList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Execute struct {\n\tName   Name\n\tParams Exprs\n\t// DiscardRows is set when we want to throw away all the rows rather than\n\t// returning for client (used for testing and benchmarking).\n\tDiscardRows bool\n}\n```\nExecute represents an EXECUTE statement.\n\n```go\nfunc (node *Execute) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Execute) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Execute) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Execute) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Execute) String() string\n```\n\n```go\ntype Explain struct {\n\tExplainOptions\n\n\t// Statement is the statement being EXPLAINed.\n\tStatement Statement\n}\n```\nExplain represents an EXPLAIN statement.\n\n```go\nfunc (node *Explain) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Explain) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Explain) String() string\n```\n\n```go\ntype ExplainAnalyze struct {\n\tExplainOptions\n\n\t// Statement is the statement being EXPLAINed.\n\tStatement Statement\n}\n```\nExplainAnalyze represents an EXPLAIN ANALYZE statement.\n\n```go\nfunc (node *ExplainAnalyze) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ExplainAnalyze) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ExplainAnalyze) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ExplainAnalyze) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ExplainAnalyze) String() string\n```\n\n```go\ntype ExplainFlag uint8\n```\nExplainFlag is a modifier in an EXPLAIN statement (like VERBOSE).\n\n```go\nconst (\n\tExplainFlagVerbose ExplainFlag = 1 + iota\n\tExplainFlagTypes\n\tExplainFlagEnv\n\tExplainFlagCatalog\n\tExplainFlagJSON\n\tExplainFlagMemo\n\tExplainFlagShape\n\tExplainFlagViz\n\tExplainFlagRedact\n)\n```\nExplain flags.\n\n```go\nfunc (f ExplainFlag) String() string\n```\n\n```go\ntype ExplainMode uint8\n```\nExplainMode indicates the mode of the explain. The default is ExplainPlan.\n\n```go\nconst (\n\t// ExplainPlan shows information about the planNode tree for a query.\n\tExplainPlan ExplainMode = 1 + iota\n\n\t// ExplainDistSQL shows the physical distsql plan for a query and whether a\n\t// query would be run in \"auto\" DISTSQL mode. See sql/explain_distsql.go for\n\t// details. If the ANALYZE option is included, the plan is also executed and\n\t// execution statistics are collected and shown in the diagram.\n\tExplainDistSQL\n\n\t// ExplainOpt shows the optimized relational expression (from the cost-based\n\t// optimizer).\n\tExplainOpt\n\n\t// ExplainVec shows the physical vectorized plan for a query and whether a\n\t// query would be run in \"auto\" vectorized mode.\n\tExplainVec\n\n\t// ExplainDebug generates a statement diagnostics bundle; only used with\n\t// EXPLAIN ANALYZE.\n\tExplainDebug\n\n\t// ExplainDDL generates a DDL plan diagram for the statement.\n\tExplainDDL\n\n\t// ExplainGist generates a plan \"gist\".\n\tExplainGist\n)\n```\n\n```go\nfunc (m ExplainMode) String() string\n```\n\n```go\ntype ExplainOptions struct {\n\tMode  ExplainMode\n\tFlags [numExplainFlags + 1]bool\n}\n```\nExplainOptions contains information about the options passed to an EXPLAIN statement.\n\n```go\ntype Export struct {\n\tQuery      *Select\n\tFileFormat string\n\tFile       Expr\n\tOptions    KVOptions\n}\n```\nExport represents a EXPORT statement.\n\n```go\nfunc (node *Export) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Export) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Export) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Export) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Export) String() string\n```\n\n```go\ntype Expr interface {\n\tfmt.Stringer\n\tNodeFormatter\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 transforms the Expr into a well-typed TypedExpr, which further permits\n\t// evaluation and type introspection, or an error if the expression cannot be well-typed.\n\t// When type checking is complete, if no error was reported, the expression and all\n\t// sub-expressions will be guaranteed to be well-typed, meaning that the method effectively\n\t// maps the Expr tree into a TypedExpr tree.\n\t//\n\t// The semaCtx parameter defines the context in which to perform type checking.\n\t// The desired parameter hints the desired type that the method's caller wants from\n\t// the resulting TypedExpr. It is not valid to call TypeCheck with a nil desired\n\t// type. Instead, call it with wildcard type types.AnyElement if no specific type is\n\t// desired. This restriction is also true of most methods and functions related\n\t// to type checking.\n\tTypeCheck(ctx context.Context, semaCtx *SemaContext, desired *types.T) (TypedExpr, error)\n}\n```\nExpr represents an expression.\n\n```go\nfunc SimpleVisit(expr Expr, preFn SimpleVisitFn) (Expr, error)\n```\nSimpleVisit is a convenience wrapper for visitors that only have VisitPre code and don't return any results except an error. The given function is called in VisitPre for every node. The visitor stops as soon as an error is returned.\n\n```go\nfunc StripMemoizedFuncs(expr Expr) Expr\n```\nStripMemoizedFuncs strips memoized function references from expression trees. This is necessary to permit equality checks using reflect.DeepEqual. Used in testing.\n\n```go\nfunc StripParens(expr Expr) Expr\n```\nStripParens strips any parentheses surrounding an expression and returns the inner expression. For instance:\n\n\t 1   -\u003e 1\n\t(1)  -\u003e 1\n\n((1)) -\u003e 1\n\n```go\nfunc WalkExpr(v Visitor, expr Expr) (newExpr Expr, changed bool)\n```\nWalkExpr traverses the nodes in an expression.\n\nNOTE: Do not count on the WalkStmt/WalkExpr machinery to visit all expressions contained in a query. Only a sub-set of all expressions are found by WalkStmt and subsequently traversed. See the comment below on WalkStmt for details.\n\n```go\ntype ExprContainer interface {\n\t// NumRows returns number of rows.\n\tNumRows() int\n\t// NumCols returns number of columns.\n\tNumCols() int\n\t// Get returns the Expr at row i column j.\n\tGet(i, j int) Expr\n}\n```\nExprContainer represents an abstract container of Exprs\n\n```go\ntype ExprEvaluator interface {\n\tEvalAllColumnsSelector(context.Context, *AllColumnsSelector) (Datum, error)\n\tEvalAndExpr(context.Context, *AndExpr) (Datum, error)\n\tEvalArray(context.Context, *Array) (Datum, error)\n\tEvalArrayFlatten(context.Context, *ArrayFlatten) (Datum, error)\n\tEvalBinaryExpr(context.Context, *BinaryExpr) (Datum, error)\n\tEvalCaseExpr(context.Context, *CaseExpr) (Datum, error)\n\tEvalCastExpr(context.Context, *CastExpr) (Datum, error)\n\tEvalCoalesceExpr(context.Context, *CoalesceExpr) (Datum, error)\n\tEvalCollateExpr(context.Context, *CollateExpr) (Datum, error)\n\tEvalColumnAccessExpr(context.Context, *ColumnAccessExpr) (Datum, error)\n\tEvalColumnItem(context.Context, *ColumnItem) (Datum, error)\n\tEvalComparisonExpr(context.Context, *ComparisonExpr) (Datum, error)\n\tEvalDefaultVal(context.Context, *DefaultVal) (Datum, error)\n\tEvalFuncExpr(context.Context, *FuncExpr) (Datum, error)\n\tEvalIfErrExpr(context.Context, *IfErrExpr) (Datum, error)\n\tEvalIfExpr(context.Context, *IfExpr) (Datum, error)\n\tEvalIndexedVar(context.Context, *IndexedVar) (Datum, error)\n\tEvalIndirectionExpr(context.Context, *IndirectionExpr) (Datum, error)\n\tEvalIsNotNullExpr(context.Context, *IsNotNullExpr) (Datum, error)\n\tEvalIsNullExpr(context.Context, *IsNullExpr) (Datum, error)\n\tEvalIsOfTypeExpr(context.Context, *IsOfTypeExpr) (Datum, error)\n\tEvalNotExpr(context.Context, *NotExpr) (Datum, error)\n\tEvalNullIfExpr(context.Context, *NullIfExpr) (Datum, error)\n\tEvalOrExpr(context.Context, *OrExpr) (Datum, error)\n\tEvalParenExpr(context.Context, *ParenExpr) (Datum, error)\n\tEvalPlaceholder(context.Context, *Placeholder) (Datum, error)\n\tEvalRangeCond(context.Context, *RangeCond) (Datum, error)\n\tEvalRoutineExpr(context.Context, *RoutineExpr) (Datum, error)\n\tEvalSubquery(context.Context, *Subquery) (Datum, error)\n\tEvalTuple(context.Context, *Tuple) (Datum, error)\n\tEvalTupleStar(context.Context, *TupleStar) (Datum, error)\n\tEvalTxnControlExpr(context.Context, *TxnControlExpr) (Datum, error)\n\tEvalTypedDummy(context.Context, *TypedDummy) (Datum, error)\n\tEvalUnaryExpr(context.Context, *UnaryExpr) (Datum, error)\n\tEvalUnqualifiedStar(context.Context, UnqualifiedStar) (Datum, error)\n\tEvalUnresolvedName(context.Context, *UnresolvedName) (Datum, error)\n}\n```\nExprEvaluator is used to evaluate TypedExpr expressions.\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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *Exprs) String() string\n```\n\n```go\ntype FamilyID = catid.FamilyID\n```\nFamilyID is a custom type for column family ID.\n\n```go\ntype FamilyTableDef struct {\n\tName    Name\n\tColumns NameList\n}\n```\nFamilyTableDef represents a family definition within a CREATE TABLE statement.\n\n```go\nfunc (node *FamilyTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype FetchCursor struct {\n\tCursorStmt\n}\n```\nFetchCursor represents a FETCH statement.\n\n```go\nfunc (f FetchCursor) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *FetchCursor) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*FetchCursor) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*FetchCursor) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *FetchCursor) String() string\n```\n\n```go\ntype FetchType int\n```\nFetchType represents the type of a FETCH (or MOVE) statement.\n\n```go\nconst (\n\t// FetchNormal represents a FETCH statement that doesn't have a special\n\t// qualifier. It's used for FORWARD, BACKWARD, NEXT, and PRIOR.\n\tFetchNormal FetchType = iota\n\t// FetchRelative represents a FETCH RELATIVE statement.\n\tFetchRelative\n\t// FetchAbsolute represents a FETCH ABSOLUTE statement.\n\tFetchAbsolute\n\t// FetchFirst represents a FETCH FIRST statement.\n\tFetchFirst\n\t// FetchLast represents a FETCH LAST statement.\n\tFetchLast\n\t// FetchAll represents a FETCH ALL statement.\n\tFetchAll\n\t// FetchBackwardAll represents a FETCH BACKWARD ALL statement.\n\tFetchBackwardAll\n)\n```\n\n```go\nfunc (o FetchType) HasCount() bool\n```\nHasCount returns true if the given fetch type should be printed with an associated count.\n\n```go\nfunc (o FetchType) String() string\n```\n\n```go\ntype FloorDivDecimalIntOp struct{}\n```\nFloorDivDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *FloorDivDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype FloorDivDecimalOp struct{}\n```\nFloorDivDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *FloorDivDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype FloorDivFloatOp struct{}\n```\nFloorDivFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *FloorDivFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype FloorDivIntDecimalOp struct{}\n```\nFloorDivIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *FloorDivIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype FloorDivIntOp struct{}\n```\nFloorDivIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *FloorDivIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype FmtCtx struct {\n\tbytes.Buffer\n\t// contains filtered or unexported fields\n}\n```\nFmtCtx is suitable for passing to Format() methods. It also exposes the underlying bytes.Buffer interface for convenience.\n\nFmtCtx cannot be copied by value.\n\n```go\nfunc NewFmtCtx(f FmtFlags, opts ...FmtCtxOption) *FmtCtx\n```\nNewFmtCtx creates a FmtCtx; only flags that don't require Annotations can be used.\n\n```go\nfunc (ctx *FmtCtx) Clone() *FmtCtx\n```\nClone returns a new FmtCtx with all the same flags and options as the original.\n\n```go\nfunc (ctx *FmtCtx) Close()\n```\nClose releases a FmtCtx for reuse. Closing a FmtCtx is not required, but is recommended for performance-sensitive paths.\n\n```go\nfunc (ctx *FmtCtx) CloseAndGetString() string\n```\nCloseAndGetString combines Close() and String().\n\n```go\nfunc (ctx *FmtCtx) FormatName(s string)\n```\nFormatName formats a string as a name.\n\nNote: prefer FormatNameP below when the string is already on the heap.\n\n```go\nfunc (ctx *FmtCtx) FormatNameP(s *string)\n```\nFormatNameP formats a string reference as a name.\n\n```go\nfunc (ctx *FmtCtx) FormatNode(n NodeFormatter)\n```\nFormatNode recurses into a node for pretty-printing. Flag-driven special cases can hook into this.\n\n```go\nfunc (ctx *FmtCtx) FormatStringConstant(s string)\n```\nFormatStringConstant formats a constant string value, redacting it if FmtHideConstants is set.\n\n```go\nfunc (ctx *FmtCtx) FormatStringDollarQuotes(s string)\n```\nFormatStringDollarQuotes formats a string constant with dollar quotes.\n\n```go\nfunc (ctx *FmtCtx) FormatTypeReference(ref ResolvableTypeReference)\n```\nFormatTypeReference formats a ResolvableTypeReference.\n\n```go\nfunc (ctx *FmtCtx) FormatURI(uri Expr)\n```\nFormatURI formats a string literal or placeholder containing a URI. If the node is a string literal, we redact the contents to avoid leaking secrets.\n\n```go\nfunc (ctx *FmtCtx) FormatURIs(uris []Expr)\n```\nFormatURIs formats a list of string literals or placeholders containing URIs.\n\n```go\nfunc (ctx *FmtCtx) HasAnyFlags(f FmtFlags) bool\n```\nHasAnyFlags returns true iff any of the given flags are set in the formatter context.\n\n```go\nfunc (ctx *FmtCtx) HasFlags(f FmtFlags) bool\n```\nHasFlags returns true iff all of the given flags are set in the formatter context.\n\n```go\nfunc (ctx *FmtCtx) Printf(f string, args ...interface{})\n```\nPrintf calls fmt.Fprintf on the linked bytes.Buffer. It is provided for convenience, to avoid having to call fmt.Fprintf(\u0026ctx.Buffer, ...).\n\nNote: DO NOT USE THIS TO INTERPOLATE %s ON NodeFormatter OBJECTS. This would call the String() method on them and would fail to reuse the same bytes buffer (and waste allocations). Instead use ctx.FormatNode().\n\n```go\nfunc (ctx *FmtCtx) SetDataConversionConfig(\n\tdcc sessiondatapb.DataConversionConfig,\n) sessiondatapb.DataConversionConfig\n```\nSetDataConversionConfig sets the DataConversionConfig on ctx and returns the old one.\n\n```go\nfunc (ctx *FmtCtx) SetLocation(loc *time.Location) *time.Location\n```\nSetLocation sets the location on ctx and returns the old one.\n\n```go\nfunc (ctx *FmtCtx) WithAnnotations(ann *Annotations, fn func())\n```\nWithAnnotations modifies FmtCtx to use the provided Annotations, calls fn, then restores the original ones.\n\n```go\nfunc (ctx *FmtCtx) WithFlags(flags FmtFlags, fn func())\n```\nWithFlags changes the flags in the FmtCtx, runs the given function, then restores the old flags.\n\n```go\nfunc (ctx *FmtCtx) WithReformatTableNames(tableNameFmt func(*FmtCtx, *TableName), fn func())\n```\nWithReformatTableNames modifies FmtCtx to to substitute the printing of table names using the provided function, calls fn, then restores the original table formatting.\n\n```go\nfunc (ctx *FmtCtx) WithoutConstantRedaction(fn func())\n```\nWithoutConstantRedaction modifies FmtCtx to ensure that constants are displayed rather than being replaced by '\\_', calls fn, then restores the original flags.\n\n```go\ntype FmtCtxOption func(*FmtCtx)\n```\nFmtCtxOption is an option to pass into NewFmtCtx.\n\n```go\nfunc FmtAnnotations(ann *Annotations) FmtCtxOption\n```\nFmtAnnotations adds annotations to the FmtCtx.\n\n```go\nfunc FmtDataConversionConfig(dcc sessiondatapb.DataConversionConfig) FmtCtxOption\n```\nFmtDataConversionConfig modifies FmtCtx to contain items relevant for the given DataConversionConfig.\n\n```go\nfunc FmtIndexedTypeFormat(fn func(*FmtCtx, *OIDTypeReference)) FmtCtxOption\n```\nFmtIndexedTypeFormat modifies FmtCtx to customize the printing of IDTypeReferences using the provided function.\n\n```go\nfunc FmtIndexedVarFormat(fn func(ctx *FmtCtx, idx int)) FmtCtxOption\n```\nFmtIndexedVarFormat modifies FmtCtx to customize the printing of IndexedVars using the provided function.\n\n```go\nfunc FmtLocation(loc *time.Location) FmtCtxOption\n```\nFmtLocation modifies FmtCtx to contain the correct location.\n\n```go\nfunc FmtPlaceholderFormat(placeholderFn func(_ *FmtCtx, _ *Placeholder)) FmtCtxOption\n```\nFmtPlaceholderFormat modifies FmtCtx to customize the printing of StarDatums using the provided function.\n\n```go\nfunc FmtReformatTableNames(tableNameFmt func(*FmtCtx, *TableName)) FmtCtxOption\n```\nFmtReformatTableNames modifies FmtCtx to substitute the printing of table naFmtParsable using the provided function.\n\n```go\ntype FmtFlags int\n```\nFmtFlags carries options for the pretty-printer.\n\n```go\nfunc (f FmtFlags) EncodeFlags() lexbase.EncodeFlags\n```\nEncodeFlags returns the subset of the flags that are also lex encode flags.\n\n```go\nfunc (f FmtFlags) HasAnyFlags(subset FmtFlags) bool\n```\nHasAnyFlags tests whether any of the given flags are set.\n\n```go\nfunc (f FmtFlags) HasFlags(subset FmtFlags) bool\n```\nHasFlags tests whether the given flags are all set.\n\n```go\ntype FnOverload interface{}\n```\nFnOverload is an opaque type used to box an eval.FnOverload.\n\nTODO(ajwerner): Give this a marker method and convert all usages. This is onerous at time of writing because there are so many.\n\n```go\ntype FnWithExprsOverload interface {\n\tFnWithExprs()\n}\n```\nFnWithExprsOverload is an opaque type used to box an eval.FnWithExprsOverload.\n\n```go\ntype ForeignKeyConstraintTableDef struct {\n\tName        Name\n\tTable       TableName\n\tFromCols    NameList\n\tToCols      NameList\n\tActions     ReferenceActions\n\tMatch       CompositeKeyMatchMethod\n\tIfNotExists bool\n}\n```\nForeignKeyConstraintTableDef represents a FOREIGN KEY constraint in the AST.\n\n```go\nfunc (node *ForeignKeyConstraintTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ForeignKeyConstraintTableDef) SetIfNotExists()\n```\nSetIfNotExists implements the ConstraintTableDef interface.\n\n```go\nfunc (node *ForeignKeyConstraintTableDef) SetName(name Name)\n```\nSetName implements the ConstraintTableDef interface.\n\n```go\ntype From struct {\n\tTables TableExprs\n\tAsOf   AsOfClause\n}\n```\nFrom represents a FROM clause.\n\n```go\nfunc (node *From) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype FullBackupClause struct {\n\tAlwaysFull bool\n\tRecurrence Expr\n}\n```\nFullBackupClause describes the frequency of full backups.\n\n```go\ntype FuncExpr struct {\n\tFunc  ResolvableFunctionReference\n\tType  funcType\n\tExprs Exprs\n\t// Filter is used for filters on aggregates: SUM(k) FILTER (WHERE k \u003e 0)\n\tFilter    Expr\n\tWindowDef *WindowDef\n\n\t// AggType is used to specify the type of aggregation.\n\tAggType AggType\n\t// OrderBy is used for aggregations which specify an order. This same field\n\t// is used for any type of aggregation.\n\tOrderBy OrderBy\n\n\t// InCall is true when the FuncExpr is part of a CALL statement.\n\tInCall bool\n\t// contains filtered or unexported fields\n}\n```\nFuncExpr represents a function call.\n\n```go\nfunc NewTypedFuncExpr(\n\tref ResolvableFunctionReference,\n\taggQualifier funcType,\n\texprs TypedExprs,\n\tfilter TypedExpr,\n\twindowDef *WindowDef,\n\ttyp *types.T,\n\tprops *FunctionProperties,\n\toverload *Overload,\n) *FuncExpr\n```\nNewTypedFuncExpr returns a FuncExpr that is already well-typed and resolved.\n\n```go\nfunc (node *FuncExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *FuncExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *FuncExpr) IsDistSQLBlocklist() bool\n```\nIsDistSQLBlocklist returns whether the function is not supported by DistSQL.\n\n```go\nfunc (node *FuncExpr) IsGeneratorClass() bool\n```\nIsGeneratorClass returns true if the resolved overload metadata is of the GeneratorClass.\n\n```go\nfunc (node *FuncExpr) IsVectorizeStreaming() bool\n```\nIsVectorizeStreaming returns whether the function is of \"streaming\" nature from the perspective of the vectorized execution engine.\n\n```go\nfunc (node *FuncExpr) IsWindowFunctionApplication() bool\n```\nIsWindowFunctionApplication returns true iff the function is being applied as a window function.\n\n```go\nfunc (expr *FuncExpr) MaybeWrapError(err error) error\n```\nMaybeWrapError updates non-nil error depending on the FuncExpr to provide more context.\n\n```go\nfunc (node *FuncExpr) ResolvedOverload() *Overload\n```\nResolvedOverload returns the builtin definition; can only be called after Resolve (which happens during TypeCheck).\n\n```go\nfunc (ta FuncExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *FuncExpr) SetTypeAnnotation(t *types.T)\n```\n\n```go\nfunc (node *FuncExpr) String() string\n```\n\n```go\nfunc (expr *FuncExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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 FunctionClass int\n```\nFunctionClass specifies the class of the builtin function.\n\n```go\nconst (\n\t// NormalClass is a standard builtin function.\n\tNormalClass FunctionClass = iota\n\t// AggregateClass is a builtin aggregate function.\n\tAggregateClass\n\t// WindowClass is a builtin window function.\n\tWindowClass\n\t// GeneratorClass is a builtin generator function.\n\tGeneratorClass\n\t// SQLClass is a builtin function that executes a SQL statement as a side\n\t// effect of the function call.\n\t//\n\t// For example, AddGeometryColumn is a SQLClass function that executes an\n\t// ALTER TABLE ... ADD COLUMN statement to add a geometry column to an\n\t// existing table. It returns metadata about the column added.\n\t//\n\t// All builtin functions of this class should include a definition for\n\t// Overload.SQLFn, which returns the SQL statement to be executed. They\n\t// should also include a definition for Overload.Fn, which is executed\n\t// like a NormalClass function and returns a Datum.\n\tSQLClass\n)\n```\n\n```go\nfunc (c FunctionClass) String() string\n```\nString returns the string representation of the function class.\n\n```go\ntype FunctionDefinition struct {\n\t// Name is the short name of the function.\n\tName string\n\n\t// Definition is the set of overloads for this function name.\n\tDefinition []*Overload\n\n\t// FunctionProperties are the properties common to all overloads.\n\tFunctionProperties\n}\n```\nFunctionDefinition implements a reference to the (possibly several) overloads for a built-in function. TODO(Chengxiong): Remove this struct entirely. Instead, use overloads from function resolution or use \"GetBuiltinProperties\" if the need is to only look at builtin functions(there are such existing use cases). Also change \"Name\" of ResolvedFunctionDefinition to Name type.\n\n```go\nfunc NewFunctionDefinition(\n\tname string, props *FunctionProperties, def []Overload,\n) *FunctionDefinition\n```\nNewFunctionDefinition allocates a function definition corresponding to the given built-in definition.\n\n```go\nfunc (fd *FunctionDefinition) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface. FunctionDefinitions should always be builtin functions, so we do not need to anonymize them, even if the flag is set.\n\n```go\nfunc (fd *FunctionDefinition) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype FunctionOID struct {\n\tOID oid.Oid\n}\n```\n\n```go\nfunc (o *FunctionOID) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (o *FunctionOID) String() string\n```\n\n```go\ntype FunctionProperties struct {\n\t// UnsupportedWithIssue, if non-zero, indicates the built-in is not really\n\t// supported and provides the issue number to link.\n\tUnsupportedWithIssue uint\n\n\t// Undocumented, when set to true, indicates that the built-in function is\n\t// hidden from documentation. This is currently used to hide experimental\n\t// functionality as it is being developed.\n\tUndocumented bool\n\n\t// Private, when set to true, indicates the built-in function is not\n\t// available for use by user queries. This is currently used by some\n\t// aggregates due to issue #10495. Private functions are implicitly\n\t// considered undocumented.\n\tPrivate bool\n\n\t// DistsqlBlocklist is set to true when a function depends on\n\t// members of the EvalContext that are not marshaled by DistSQL\n\t// (e.g. planner). Currently used for DistSQL to determine if\n\t// expressions can be evaluated on a different node without sending\n\t// over the EvalContext.\n\t//\n\t// TODO(andrei): Get rid of the planner from the EvalContext and then we can\n\t// get rid of this blocklist.\n\tDistsqlBlocklist bool\n\n\t// Category is used to generate documentation strings.\n\tCategory string\n\n\t// AvailableOnPublicSchema indicates whether the function can be resolved\n\t// if it is found on the public schema.\n\tAvailableOnPublicSchema bool\n\n\t// ReturnLabels can be used to override the return column name of a\n\t// function in a FROM clause.\n\t// This satisfies a Postgres quirk where some json functions have\n\t// different return labels when used in SELECT or FROM clause.\n\tReturnLabels []string\n\n\t// AmbiguousReturnType is true if the builtin's return type can't be\n\t// determined without extra context. This is used for formatting builtins\n\t// with the FmtParsable directive.\n\tAmbiguousReturnType bool\n\n\t// HasSequenceArguments is true if the builtin function takes in a sequence\n\t// name (string) and can be used in a scalar expression.\n\t// TODO(richardjcai): When implicit casting is supported, these builtins\n\t// should take RegClass as the arg type for the sequence name instead of\n\t// string, we will add a dependency on all RegClass types used in a view.\n\tHasSequenceArguments bool\n\n\t// CompositeInsensitive indicates that this function returns equal results\n\t// when evaluated on equal inputs. This is a non-trivial property for\n\t// composite types which can be equal but not identical\n\t// (e.g. decimals 1.0 and 1.00). For example, converting a decimal to string\n\t// is not CompositeInsensitive.\n\t//\n\t// See memo.CanBeCompositeSensitive.\n\tCompositeInsensitive bool\n\n\t// VectorizeStreaming indicates that the function is of \"streaming\" nature\n\t// from the perspective of the vectorized execution engine.\n\tVectorizeStreaming bool\n\n\t// ReturnsRecordType indicates that this function is a record-returning\n\t// function, which implies that it's unusable without a corresponding type\n\t// alias.\n\t//\n\t// For example, consider the case of json_to_record('{\"a\":\"b\", \"c\":\"d\"}').\n\t// This function returns an error unless it as an `AS t(a,b,c)` declaration,\n\t// since its definition is to pick out the JSON attributes within the input\n\t// that match, by name, to the columns in the aliased record type.\n\tReturnsRecordType bool\n}\n```\nFunctionProperties defines the properties of the built-in functions that are common across all overloads.\n\n```go\nfunc (fp *FunctionProperties) ShouldDocument() bool\n```\nShouldDocument returns whether the built-in function should be included in external-facing documentation.\n\n```go\ntype FunctionReference interface {\n\tfmt.Stringer\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nFunctionReference is the common interface to UnresolvedName and QualifiedFunctionName.\n\n```go\ntype FunctionReferenceResolver interface {\n\t// ResolveFunction resolves a group of overloads with the given function name\n\t// within a search path. An error with ErrRoutineUndefined cause is returned\n\t// if function does not exist.\n\t//\n\t// TODO(Chengxiong): Consider adding an optional slice of argument types to\n\t// the input of this method, so that we can try to narrow down the scope of\n\t// overloads a bit earlier and decrease the possibility of ambiguous error\n\t// on function properties.\n\tResolveFunction(\n\t\tctx context.Context, name UnresolvedRoutineName, path SearchPath,\n\t) (*ResolvedFunctionDefinition, error)\n\n\t// ResolveFunctionByOID looks up a function overload by using a given oid.\n\t// Function name is returned together with the overload. Error is thrown if\n\t// there is no function with the same oid.\n\tResolveFunctionByOID(\n\t\tctx context.Context, oid oid.Oid,\n\t) (*RoutineName, *Overload, error)\n}\n```\nFunctionReferenceResolver is the interface that provides the ability to resolve built-in or user-defined function definitions from unresolved names.\n\n```go\ntype GeneratedAlwaysAsIdentity struct {\n\tSeqOptions SequenceOptions\n}\n```\nGeneratedAlwaysAsIdentity represents a column generated always as identity.\n\n```go\ntype GeneratedByDefAsIdentity struct {\n\tSeqOptions SequenceOptions\n}\n```\nGeneratedByDefAsIdentity represents a column generated by default as identity.\n\n```go\ntype GeneratedIdentityType int\n```\nGeneratedIdentityType represents either GENERATED ALWAYS AS IDENTITY or GENERATED BY DEFAULT AS IDENTITY.\n\n```go\nconst (\n\tGeneratedAlways GeneratedIdentityType = iota\n\tGeneratedByDefault\n)\n```\nThe values of GeneratedIdentity.GeneratedAsIdentityType.\n\n```go\ntype GeneratorOverload interface {\n\tGenerator()\n}\n```\nGeneratorOverload is an opaque type used to box an eval.GeneratorOverload.\n\n```go\ntype GeneratorWithExprsOverload interface {\n\tGeneratorWithExprs()\n}\n```\nGeneratorWithExprsOverload is an opaque type used to box an eval.GeneratorWithExprsOverload.\n\n```go\ntype Grant struct {\n\tPrivileges      privilege.List\n\tTargets         GrantTargetList\n\tGrantees        RoleSpecList\n\tWithGrantOption bool\n}\n```\nGrant represents a GRANT statement.\n\n```go\nfunc (node *Grant) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Grant) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Grant) String() string\n```\n\n```go\ntype GrantRole struct {\n\tRoles       NameList\n\tMembers     RoleSpecList\n\tAdminOption bool\n}\n```\nGrantRole represents a GRANT \\\u003crole\u003e statement.\n\n```go\nfunc (node *GrantRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*GrantRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*GrantRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*GrantRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *GrantRole) String() string\n```\n\n```go\ntype GrantTargetList struct {\n\tDatabases  NameList\n\tSchemas    ObjectNamePrefixList\n\tTables     TableAttrs\n\tTypes      []*UnresolvedObjectName\n\tFunctions  RoutineObjs\n\tProcedures RoutineObjs\n\t// If the target is for all sequences in a set of schemas.\n\tAllSequencesInSchema bool\n\t// If the target is for all tables in a set of schemas.\n\tAllTablesInSchema bool\n\t// If the target is for all functions in a set of schemas.\n\tAllFunctionsInSchema bool\n\t// If the target is for all procedures in a set of schemas.\n\tAllProceduresInSchema bool\n\t// If the target is system.\n\tSystem bool\n\t// If the target is External Connection.\n\tExternalConnections NameList\n\n\t// ForRoles and Roles are used internally in the parser and not used\n\t// in the AST. Therefore they do not participate in pretty-printing,\n\t// etc.\n\tForRoles bool\n\tRoles    RoleSpecList\n}\n```\nGrantTargetList represents a list of targets. Only one field may be non-nil.\n\n```go\nfunc (tl *GrantTargetList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype GroupBy []Expr\n```\nGroupBy represents a GROUP BY clause.\n\n```go\nfunc (node *GroupBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype HiddenConstraint struct{}\n```\nHiddenConstraint represents HIDDEN on a column.\n\n```go\ntype HiddenFromShowQueries interface {\n\t// contains filtered or unexported methods\n}\n```\nHiddenFromShowQueries is a pseudo-interface to be implemented by statements that should not show up in SHOW QUERIES (and are hence not cancellable using CANCEL QUERIES either). Usually implemented by statements that spawn jobs.\n\n```go\ntype HomogeneousType struct{}\n```\nHomogeneousType is a TypeList implementation that accepts any arguments, as long as all are the same type or NULL. The homogeneous constraint is enforced in typeCheckOverloadedExprs.\n\n```go\nfunc (HomogeneousType) GetAt(i int) *types.T\n```\nGetAt is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) Length() int\n```\nLength is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) Match(types []*types.T) bool\n```\nMatch is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) MatchAt(typ *types.T, i int) bool\n```\nMatchAt is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) MatchAtOid(typ *types.T, i int) bool\n```\nMatchAtIdentical is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) MatchLen(l int) bool\n```\nMatchLen is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) MatchOid(types []*types.T) bool\n```\nMatchIdentical is part of the TypeList interface.\n\n```go\nfunc (HomogeneousType) String() string\n```\n\n```go\nfunc (HomogeneousType) Types() []*types.T\n```\nTypes is part of the TypeList interface.\n\n```go\ntype ID = catid.ColumnID\n```\nID is a custom type for {Database,Table}Descriptor IDs.\n\n```go\ntype IfErrExpr struct {\n\tCond    Expr\n\tElse    Expr\n\tErrCode Expr\n\t// contains filtered or unexported fields\n}\n```\nIfErrExpr represents an IFERROR expression.\n\n```go\nfunc NewTypedIfErrExpr(cond, orElse, errCode TypedExpr) *IfErrExpr\n```\nNewTypedIfErrExpr returns a new IfErrExpr that is verified to be well-typed.\n\n```go\nfunc (node *IfErrExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IfErrExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IfErrExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IfErrExpr) String() string\n```\n\n```go\nfunc (expr *IfErrExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IfErrExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IfExpr struct {\n\tCond Expr\n\tTrue Expr\n\tElse Expr\n\t// contains filtered or unexported fields\n}\n```\nIfExpr represents an IF expression.\n\n```go\nfunc (node *IfExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IfExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IfExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IfExpr) String() string\n```\n\n```go\nfunc (expr *IfExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *IfExpr) TypedCondExpr() TypedExpr\n```\nTypedCondExpr returns the IfExpr's Cond expression as a TypedExpr.\n\n```go\nfunc (node *IfExpr) TypedElseExpr() TypedExpr\n```\nTypedElseExpr returns the IfExpr's Else expression as a TypedExpr.\n\n```go\nfunc (node *IfExpr) TypedTrueExpr() TypedExpr\n```\nTypedTrueExpr returns the IfExpr's True expression as a TypedExpr.\n\n```go\nfunc (expr *IfExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Import struct {\n\tTable      *TableName\n\tInto       bool\n\tIntoCols   NameList\n\tFileFormat string\n\tFiles      Exprs\n\tBundle     bool\n\tOptions    KVOptions\n}\n```\nImport represents a IMPORT statement.\n\n```go\nfunc (node *Import) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Import) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Import) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Import) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Import) String() string\n```\n\n```go\ntype InTupleOp struct{}\n```\nInTupleOp is a BinaryEvalOp.\n\n```go\nfunc (op *InTupleOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype IndexElem struct {\n\t// Column is set if this is a simple column reference (the common case).\n\tColumn Name\n\t// Expr is set if the index element is an expression (part of an expression\n\t// index). If set, Column is empty.\n\tExpr       Expr\n\tDirection  Direction\n\tNullsOrder NullsOrder\n\n\t// OpClass is set if an index element was created using a named opclass.\n\tOpClass Name\n}\n```\nIndexElem represents a column with a direction in a CREATE INDEX statement.\n\n```go\nfunc (node *IndexElem) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype IndexElemList []IndexElem\n```\nIndexElemList is list of IndexElem.\n\n```go\nfunc (l *IndexElemList) Format(ctx *FmtCtx)\n```\nFormat pretty-prints the contained names separated by commas. Format implements the NodeFormatter interface.\n\n```go\ntype IndexFlags struct {\n\tIndex   UnrestrictedName\n\tIndexID IndexID\n\t// Direction of the scan, if provided. Can only be set if\n\t// one of Index or IndexID is set.\n\tDirection Direction\n\t// NoIndexJoin cannot be specified together with an index.\n\tNoIndexJoin bool\n\t// NoZigzagJoin indicates we should not plan a zigzag join for this scan.\n\tNoZigzagJoin bool\n\t// NoFullScan indicates we should constrain this scan.\n\tNoFullScan bool\n\t// AvoidFullScan indicates we should constrain this scan if possible.\n\tAvoidFullScan bool\n\t// IgnoreForeignKeys disables optimizations based on outbound foreign key\n\t// references from this table. This is useful in particular for scrub queries\n\t// used to verify the consistency of foreign key relations.\n\tIgnoreForeignKeys bool\n\t// IgnoreUniqueWithoutIndexKeys disables optimizations based on unique without\n\t// index constraints.\n\tIgnoreUniqueWithoutIndexKeys bool\n\t// ForceInvertedIndex indicates that we should only plan scans over inverted\n\t// indexes.\n\tForceInvertedIndex bool\n\t// Zigzag hinting fields are distinct:\n\t// ForceZigzag means we saw a TABLE@{FORCE_ZIGZAG}\n\t// ZigzagIndexes means we saw TABLE@{FORCE_ZIGZAG=name}\n\t// ZigzagIndexIDs means we saw TABLE@{FORCE_ZIGZAG=[ID]}\n\t// The only allowable combinations are when a valid id and name are combined.\n\tForceZigzag    bool\n\tZigzagIndexes  []UnrestrictedName\n\tZigzagIndexIDs []IndexID\n\n\t// Restrict select to the specified column family.\n\t// Used by changefeed.\n\tFamilyID *FamilyID\n}\n```\nIndexFlags represents \"@\\\u003cindex\\_name|index\\_id\u003e\" or \"@{param\\[,param]}\" where param is one of:\n\n  - FORCE\\_INDEX=\\\u003cindex\\_name|index\\_id\u003e\n  - ASC / DESC\n  - NO\\_INDEX\\_JOIN\n  - NO\\_ZIGZAG\\_JOIN\n  - NO\\_FULL\\_SCAN\n  - AVOID\\_FULL\\_SCAN\n  - IGNORE\\_FOREIGN\\_KEYS\n  - FORCE\\_INVERTED\\_INDEX\n  - FORCE\\_ZIGZAG\n  - FORCE\\_ZIGZAG=\\\u003cindex\\_name|index\\_id\u003e\\*\n  - FAMILY=\\[family\\_id]\n\nIt is used optionally after a table name in SELECT statements.\n\n```go\nfunc (ih *IndexFlags) Check() error\n```\nCheck verifies if the flags are valid:\n\n  - ascending/descending is not specified without an index;\n  - no\\_index\\_join isn't specified with an index.\n\n```go\nfunc (ih *IndexFlags) CombineWith(other *IndexFlags) error\n```\nCombineWith combines two IndexFlags structures, returning an error if they conflict with one another.\n\n```go\nfunc (ih *IndexFlags) ForceIndex() bool\n```\nForceIndex returns true if a forced index was specified, either using a name or an IndexID.\n\n```go\nfunc (ih *IndexFlags) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype IndexID = catid.IndexID\n```\nIndexID is a custom type for IndexDescriptor IDs.\n\n```go\ntype IndexInvisibility struct {\n\tValue         float64\n\tFloatProvided bool\n}\n```\n\n```go\ntype IndexLookupFlags struct {\n\t// Required, if true, indicates lookup can return nil index without\n\t// returning an error if the index does not exist.\n\tRequired bool\n\t// IncludeNonActiveIndex expands the lookup to also consider\n\t// non-active indexes. By default, only active indexes are\n\t// considered.\n\tIncludeNonActiveIndex bool\n\t// IncludeOfflineTable expands the lookup to also consider offline\n\t// tables. By default, only online tables are considered.\n\tIncludeOfflineTable bool\n}\n```\nIndexLookupFlags is the flag struct used for resolver.ResolveIndex() only.\n\n```go\ntype IndexTableDef struct {\n\tName             Name\n\tColumns          IndexElemList\n\tSharded          *ShardedIndexDef\n\tStoring          NameList\n\tType             idxtype.T\n\tPartitionByIndex *PartitionByIndex\n\tStorageParams    StorageParams\n\tPredicate        Expr\n\tInvisibility     IndexInvisibility\n}\n```\nIndexTableDef represents an index definition within a CREATE TABLE statement.\n\n```go\nfunc (node *IndexTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype IndexedVar struct {\n\tIdx int\n\t// contains filtered or unexported fields\n}\n```\nIndexedVar is a VariableExpr that can be used as a leaf in expressions; it represents a dynamic value. It defers calls to TypeCheck and Format to an IndexedVarContainer.\n\n```go\nfunc NewOrdinalReference(r int) *IndexedVar\n```\nNewOrdinalReference is a helper routine to create a standalone IndexedVar with the given index value. This needs to undergo BindIfUnbound() below before it can be fully used.\n\n```go\nfunc NewTypedOrdinalReference(r int, typ *types.T) *IndexedVar\n```\nNewTypedOrdinalReference returns a new IndexedVar with the given index value that is verified to be well-typed.\n\n```go\nfunc (node *IndexedVar) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (v *IndexedVar) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (v *IndexedVar) ResolvedType() *types.T\n```\nResolvedType is part of the TypedExpr interface.\n\n```go\nfunc (node *IndexedVar) String() string\n```\n\n```go\nfunc (v *IndexedVar) TypeCheck(\n\t_ context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck is part of the Expr interface.\n\n```go\nfunc (*IndexedVar) Variable()\n```\nVariable is a dummy function part of the VariableExpr interface.\n\n```go\nfunc (v *IndexedVar) Walk(_ Visitor) Expr\n```\nWalk is part of the Expr interface.\n\n```go\ntype IndexedVarContainer interface {\n\tIndexedVarResolvedType(idx int) *types.T\n}\n```\nIndexedVarContainer provides type-checking for an IndexedVar.\n\n```go\ntype IndexedVarHelper struct {\n\t// contains filtered or unexported fields\n}\n```\nIndexedVarHelper wraps an IndexedVarContainer (an interface) and creates IndexedVars bound to that container.\n\nIt also keeps track of which indexes from the container are used by expressions.\n\n```go\nfunc MakeIndexedVarHelper(container IndexedVarContainer, numVars int) IndexedVarHelper\n```\nMakeIndexedVarHelper initializes an IndexedVarHelper structure.\n\n```go\nfunc MakeIndexedVarHelperWithTypes(types []*types.T) IndexedVarHelper\n```\nMakeIndexedVarHelperWithTypes creates an IndexedVarHelper which provides the given types for indexed vars.\n\n```go\nfunc (h *IndexedVarHelper) AppendSlot() int\n```\nAppendSlot expands the capacity of this IndexedVarHelper by one and returns the index of the new slot.\n\n```go\nfunc (h *IndexedVarHelper) Container() IndexedVarContainer\n```\nContainer returns the container associated with the helper.\n\n```go\nfunc (h *IndexedVarHelper) IndexedVar(idx int) *IndexedVar\n```\nIndexedVar returns an IndexedVar for the given index. The index must be valid.\n\n```go\nfunc (h *IndexedVarHelper) IndexedVarWithType(idx int, typ *types.T) *IndexedVar\n```\nIndexedVarWithType returns an IndexedVar for the given index, with the given type. The index must be valid. This should be used in the case where an indexed var is being added before its container has a corresponding entry for it.\n\n```go\ntype IndirectionExpr struct {\n\tExpr        Expr\n\tIndirection ArraySubscripts\n\t// contains filtered or unexported fields\n}\n```\nIndirectionExpr represents a subscript expression.\n\n```go\nfunc NewTypedIndirectionExpr(expr, index TypedExpr, typ *types.T) *IndirectionExpr\n```\nNewTypedIndirectionExpr returns a new IndirectionExpr that is verified to be well-typed.\n\n```go\nfunc (node *IndirectionExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IndirectionExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IndirectionExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IndirectionExpr) String() string\n```\n\n```go\nfunc (expr *IndirectionExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IndirectionExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Insert struct {\n\tWith       *With\n\tTable      TableExpr\n\tColumns    NameList\n\tRows       *Select\n\tOnConflict *OnConflict\n\tReturning  ReturningClause\n}\n```\nInsert represents an INSERT statement.\n\n```go\nfunc (node *Insert) DefaultValues() bool\n```\nDefaultValues returns true iff only default values are being inserted.\n\n```go\nfunc (node *Insert) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *Insert) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Insert) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Insert) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Insert) String() string\n```\n\n```go\nfunc (node *Insert) VectorInsert() bool\n```\nVectorInsert returns true iff the input for the insert operation is a materialized columnar batch, in which case the Insert operator will use a vectorized implementation. This should only be true for the Copy fast path.\n\n```go\ntype IsNotNullExpr struct {\n\tExpr Expr\n\t// contains filtered or unexported fields\n}\n```\nIsNotNullExpr represents an IS NOT NULL expression. This is equivalent to IS DISTINCT FROM NULL, except when the input is a tuple.\n\n```go\nfunc NewTypedIsNotNullExpr(expr TypedExpr) *IsNotNullExpr\n```\nNewTypedIsNotNullExpr returns a new IsNotNullExpr that is verified to be well-typed.\n\n```go\nfunc (node *IsNotNullExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IsNotNullExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IsNotNullExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IsNotNullExpr) String() string\n```\n\n```go\nfunc (expr *IsNotNullExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *IsNotNullExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the IsNotNullExpr's inner expression as a TypedExpr.\n\n```go\nfunc (expr *IsNotNullExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IsNullExpr struct {\n\tExpr Expr\n\t// contains filtered or unexported fields\n}\n```\nIsNullExpr represents an IS NULL expression. This is equivalent to IS NOT DISTINCT FROM NULL, except when the input is a tuple.\n\n```go\nfunc NewTypedIsNullExpr(expr TypedExpr) *IsNullExpr\n```\nNewTypedIsNullExpr returns a new IsNullExpr that is verified to be well-typed.\n\n```go\nfunc (node *IsNullExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IsNullExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IsNullExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IsNullExpr) String() string\n```\n\n```go\nfunc (expr *IsNullExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *IsNullExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the IsNullExpr's inner expression as a TypedExpr.\n\n```go\nfunc (expr *IsNullExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype IsOfTypeExpr struct {\n\tNot   bool\n\tExpr  Expr\n\tTypes []ResolvableTypeReference\n\t// contains filtered or unexported fields\n}\n```\nIsOfTypeExpr represents an IS {,NOT} OF (type\\_list) expression.\n\n```go\nfunc (node *IsOfTypeExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *IsOfTypeExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta IsOfTypeExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *IsOfTypeExpr) ResolvedTypes() []*types.T\n```\nResolvedTypes returns a slice of resolved types corresponding to the Types slice of unresolved types. It may only be accessed after typechecking.\n\n```go\nfunc (node *IsOfTypeExpr) String() string\n```\n\n```go\nfunc (expr *IsOfTypeExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *IsOfTypeExpr) Walk(v 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\tReadUncommittedIsolation\n\tReadCommittedIsolation\n\tRepeatableReadIsolation\n\tSnapshotIsolation\n\tSerializableIsolation\n)\n```\nIsolationLevel values\n\n```go\nfunc FromKVIsoLevel(level isolation.Level) IsolationLevel\n```\nFromKVIsoLevel converts an isolation.Level to its SQL semantic equivalent.\n\n```go\nfunc (k IsolationLevel) SafeValue()\n```\nSafeValue makes Kind a redact.SafeValue.\n\n```go\nfunc (i IsolationLevel) String() string\n```\n\n```go\nfunc (i IsolationLevel) ToKVIsoLevel() isolation.Level\n```\nToKVIsoLevel converts an IsolationLevel to its isolation.Level equivalent.\n\n```go\nfunc (i IsolationLevel) UpgradeToEnabledLevel(\n\tallowReadCommitted, allowRepeatableRead, hasLicense bool,\n) (_ IsolationLevel, upgraded, upgradedDueToLicense bool)\n```\nUpgradeToEnabledLevel upgrades the isolation level to the weakest enabled isolation level that is stronger than or equal to the input level.\n\n```go\ntype JSONAllExistsOp struct{}\n```\nJSONAllExistsOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONAllExistsOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONExistsOp struct{}\n```\nJSONExistsOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONExistsOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchTextIntOp struct{}\n```\nJSONFetchTextIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchTextIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchTextPathOp struct{}\n```\nJSONFetchTextPathOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchTextPathOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchTextStringOp struct{}\n```\nJSONFetchTextStringOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchTextStringOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchValIntOp struct{}\n```\nJSONFetchValIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchValIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchValPathOp struct{}\n```\nJSONFetchValPathOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchValPathOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONFetchValStringOp struct{}\n```\nJSONFetchValStringOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONFetchValStringOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JSONSomeExistsOp struct{}\n```\nJSONSomeExistsOp is a BinaryEvalOp.\n\n```go\nfunc (op *JSONSomeExistsOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype JobCommand int\n```\nJobCommand determines which type of action to effect on the selected job(s).\n\n```go\nconst (\n\tPauseJob JobCommand = iota\n\tCancelJob\n\tResumeJob\n)\n```\nJobCommand values\n\n```go\ntype JoinCond interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nJoinCond represents a join condition.\n\n```go\ntype JoinTableExpr struct {\n\tJoinType string\n\tLeft     TableExpr\n\tRight    TableExpr\n\tCond     JoinCond\n\tHint     string\n}\n```\nJoinTableExpr represents a TableExpr that's a JOIN operation.\n\n```go\nfunc (node *JoinTableExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *JoinTableExpr) String() string\n```\n\n```go\nfunc (expr *JoinTableExpr) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype KVOption struct {\n\tKey   Name\n\tValue Expr\n}\n```\nKVOption is a key-value option.\n\n```go\ntype KVOptions []KVOption\n```\nKVOptions is a list of KVOptions.\n\n```go\nfunc (o *KVOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o *KVOptions) HasKey(key Name) bool\n```\nHasKey searches the set of options to discover if it has key.\n\n```go\ntype LShiftINetOp struct{}\n```\nLShiftINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *LShiftINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype LShiftIntOp struct{}\n```\nLShiftIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *LShiftIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype LShiftVarBitIntOp struct{}\n```\nLShiftVarBitIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *LShiftVarBitIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype LabelSpec struct {\n\tIfNotExists bool\n\tLabel       Expr\n}\n```\nLabelSpec describes the labeling specification for an object.\n\n```go\nfunc (l *LabelSpec) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LikeTableDef struct {\n\tName    TableName\n\tOptions []LikeTableOption\n}\n```\nLikeTableDef represents a LIKE table declaration on a CREATE TABLE statement.\n\n```go\nfunc (def *LikeTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LikeTableOpt int\n```\nLikeTableOpt represents one of the types of things that can be included or excluded in a LIKE table declaration. It's a bitmap, where each of the Opt values is a single enabled bit in the map.\n\n```go\nconst (\n\tLikeTableOptConstraints LikeTableOpt = 1 \u003c\u003c iota\n\tLikeTableOptDefaults\n\tLikeTableOptGenerated\n\tLikeTableOptIndexes\n)\n```\nThe values for LikeTableOpt.\n\n```go\nfunc (o LikeTableOpt) Has(other LikeTableOpt) bool\n```\nHas returns true if the receiver has all of the given option bits set.\n\n```go\nfunc (o LikeTableOpt) String() string\n```\n\n```go\ntype LikeTableOption struct {\n\tExcluded bool\n\tOpt      LikeTableOpt\n}\n```\nLikeTableOption represents an individual INCLUDING / EXCLUDING statement on a LIKE table declaration.\n\n```go\nfunc (l LikeTableOption) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Limit struct {\n\tOffset, Count Expr\n\tLimitAll      bool\n}\n```\nLimit represents a LIMIT clause.\n\n```go\nfunc (node *Limit) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LineWidthMode int\n```\nLineWidthMode directs which mode of line width to use.\n\n```go\ntype ListPartition struct {\n\tName         Name\n\tExprs        Exprs\n\tSubpartition *PartitionBy\n}\n```\nListPartition represents a PARTITION definition within a PARTITION BY LIST.\n\n```go\nfunc (node *ListPartition) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LiteralValuesClause struct {\n\tRows ExprContainer\n}\n```\nLiteralValuesClause is like ValuesClause but values have been typed checked and evaluated and are assumed to be ready to use Datums.\n\n```go\nfunc (node *LiteralValuesClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*LiteralValuesClause) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*LiteralValuesClause) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*LiteralValuesClause) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *LiteralValuesClause) String() string\n```\n\n```go\ntype Locality struct {\n\tLocalityLevel LocalityLevel\n\t// TableRegion is set if is LocalityLevelTable and a non-primary region is set.\n\tTableRegion Name\n\t// RegionalByRowColumn is set if col_name on REGIONAL BY ROW ON \u003ccol_name\u003e is\n\t// set.\n\tRegionalByRowColumn Name\n}\n```\nLocality defines the locality for a given table.\n\n```go\nfunc (node *Locality) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LocalityLevel int\n```\nLocalityLevel is a defined locality.\n\n```go\nconst (\n\t// LocalityLevelGlobal distributes a table across\n\t// a global cluster.\n\tLocalityLevelGlobal LocalityLevel = iota\n\t// LocalityLevelTable implies a table is homed\n\t// in a fixed region.\n\tLocalityLevelTable\n\t// LocalityLevelRow implies a table's rows are\n\t// homed depending on values within the row.\n\tLocalityLevelRow\n)\n```\n\n```go\ntype LockingClause []*LockingItem\n```\nLockingClause represents a locking clause, like FOR UPDATE.\n\n```go\nfunc (node *LockingClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LockingDurability byte\n```\nLockingDurability represents the durability of a lock. It is not exposed through SQL, but is instead set by the system according to statement type and isolation level. It is included here for completeness.\n\n```go\nconst (\n\t// LockDurabilityBestEffort represents the default: make a best-effort attempt\n\t// to hold the lock until commit while keeping it unreplicated and in-memory\n\t// on the leaseholder of the locked row. Best-effort locks do not propagate\n\t// via Raft to other nodes, and are therefore much faster to acquire than\n\t// guaranteed-durable locks. For this reason we prefer to use best-effort\n\t// locks when possible (i.e. whenever locking is used as an optimization\n\t// rather than as a guarantor of exclusion).\n\tLockDurabilityBestEffort LockingDurability = iota\n\n\t// LockDurabilityGuaranteed guarantees that if the transaction commits, the\n\t// lock was held until commit, even in the face of lease transfers, range\n\t// splits, range merges, node failures, memory limits, etc. Guaranteed-durable\n\t// locks *must* be used whenever correctness depends on locking.\n\tLockDurabilityGuaranteed\n)\n```\nThe ordering of the variants is important, because the highest numerical value takes precedence when row-level locking is specified multiple ways.\n\n```go\nfunc (d LockingDurability) Max(d2 LockingDurability) LockingDurability\n```\nMax returns the most durable of the two locking durabilities.\n\n```go\nfunc (d LockingDurability) String() string\n```\n\n```go\ntype LockingForm byte\n```\nLockingForm represents the form of locking to use, record locking or predicate locking. It is not currently exposed through SQL, but could be once more fully supported.\n\n```go\nconst (\n\t// LockRecord represents the default: lock existing rows within the specified\n\t// span(s), which prevents modification of those rows but does not prevent\n\t// insertion of new rows (phantoms) into the span(s).\n\tLockRecord LockingForm = iota\n\t// LockPredicate represents locking the logical predicate defined by the\n\t// span(s), preventing modification of existing rows as well as insertion of\n\t// new rows (phantoms). This is similar to the behavior of \"next-key locks\" in\n\t// InnoDB, \"key-range locks\" in SQL Server, \"phantom locks\" in Sybase, etc.\n\t// (Postgres also has predicate locks, which it uses under serializable\n\t// isolation, but these are used to detect serializable violations rather than\n\t// for mutual exclusion.)\n\t//\n\t// We currently only use predicate locks for uniqueness checks under snapshot\n\t// and read committed isolation, and only support predicate locks on\n\t// single-key spans.\n\tLockPredicate\n)\n```\nThe ordering of the variants is important, because the highest numerical value takes precedence when row-level locking is specified multiple ways.\n\n```go\nfunc (p LockingForm) Max(p2 LockingForm) LockingForm\n```\nMax returns the maximum of the two locking forms.\n\n```go\nfunc (p LockingForm) String() string\n```\n\n```go\ntype LockingItem struct {\n\tStrength   LockingStrength\n\tTargets    TableNames\n\tWaitPolicy LockingWaitPolicy\n\tForm       LockingForm\n}\n```\nLockingItem represents a single locking item in a locking clause.\n\n```go\nfunc (f *LockingItem) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype LockingStrength byte\n```\nLockingStrength represents the possible row-level lock modes for a SELECT statement.\n\n```go\nconst (\n\t// ForNone represents the default - no for statement at all.\n\t// LockingItem AST nodes are never created with this strength.\n\tForNone LockingStrength = iota\n\t// ForKeyShare represents FOR KEY SHARE.\n\tForKeyShare\n\t// ForShare represents FOR SHARE.\n\tForShare\n\t// ForNoKeyUpdate represents FOR NO KEY UPDATE.\n\tForNoKeyUpdate\n\t// ForUpdate represents FOR UPDATE.\n\tForUpdate\n)\n```\nThe ordering of the variants is important, because the highest numerical value takes precedence when row-level locking is specified multiple ways.\n\n```go\nfunc (s LockingStrength) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (s LockingStrength) Max(s2 LockingStrength) LockingStrength\n```\nMax returns the maximum of the two locking strengths.\n\n```go\nfunc (s LockingStrength) String() string\n```\n\n```go\ntype LockingWaitPolicy byte\n```\nLockingWaitPolicy represents the possible policies for handling conflicting locks held by other active transactions when attempting to lock rows due to FOR UPDATE/SHARE clauses (i.e. it represents the NOWAIT and SKIP LOCKED options).\n\n```go\nconst (\n\t// LockWaitBlock represents the default - wait for the lock to become\n\t// available.\n\tLockWaitBlock LockingWaitPolicy = iota\n\t// LockWaitSkipLocked represents SKIP LOCKED - skip rows that can't be locked.\n\tLockWaitSkipLocked\n\t// LockWaitError represents NOWAIT - raise an error if a row cannot be\n\t// locked.\n\tLockWaitError\n)\n```\nThe ordering of the variants is important, because the highest numerical value takes precedence when row-level locking is specified multiple ways.\n\n```go\nfunc (p LockingWaitPolicy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (p LockingWaitPolicy) Max(p2 LockingWaitPolicy) LockingWaitPolicy\n```\nMax returns the maximum of the two locking wait policies.\n\n```go\nfunc (p LockingWaitPolicy) String() string\n```\n\n```go\ntype LogicalReplicationOptions struct {\n\t// Mapping of table name to UDF name\n\tUserFunctions    map[UnresolvedName]RoutineName\n\tCursor           Expr\n\tMetricsLabel     Expr\n\tMode             Expr\n\tDefaultFunction  Expr\n\tDiscard          Expr\n\tSkipSchemaCheck  *DBool\n\tUnidirectional   *DBool\n\tBidirectionalURI Expr\n\tParentID         Expr\n}\n```\n\n```go\nfunc (o *LogicalReplicationOptions) CombineWith(other *LogicalReplicationOptions) error\n```\n\n```go\nfunc (lro *LogicalReplicationOptions) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (o LogicalReplicationOptions) IsDefault() bool\n```\nIsDefault returns true if this logical options struct has default value.\n\n```go\ntype LogicalReplicationResources struct {\n\tTables   []*UnresolvedName\n\tDatabase Name\n}\n```\n\n```go\nfunc (lrr *LogicalReplicationResources) Format(ctx *FmtCtx)\n```\n\n```go\ntype MatchLikeOp struct {\n\tCaseInsensitive bool\n}\n```\nMatchLikeOp is a BinaryEvalOp.\n\n```go\nfunc (op *MatchLikeOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MatchRegexpOp struct {\n\tEscape          rune\n\tCaseInsensitive bool\n}\n```\nMatchRegexpOp is a BinaryEvalOp.\n\n```go\nfunc (op *MatchRegexpOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDateIntOp struct{}\n```\nMinusDateIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDateIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDateIntervalOp struct{}\n```\nMinusDateIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDateIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDateOp struct{}\n```\nMinusDateOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDateOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDateTimeOp struct{}\n```\nMinusDateTimeOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDateTimeOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDecimalIntOp struct{}\n```\nMinusDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusDecimalOp struct{}\n```\nMinusDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusFloatOp struct{}\n```\nMinusFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusINetIntOp struct{}\n```\nMinusINetIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusINetIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusINetOp struct{}\n```\nMinusINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusIntDecimalOp struct{}\n```\nMinusIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusIntOp struct{}\n```\nMinusIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusIntervalOp struct{}\n```\nMinusIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusJsonbIntOp struct{}\n```\nMinusJsonbIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusJsonbIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusJsonbStringArrayOp struct{}\n```\nMinusJsonbStringArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusJsonbStringArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusJsonbStringOp struct{}\n```\nMinusJsonbStringOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusJsonbStringOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusPGLSNDecimalOp struct{}\n```\nMinusPGLSNDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusPGLSNDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusPGLSNOp struct{}\n```\nMinusPGLSNOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusPGLSNOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusPGVectorOp struct{}\n```\nMinusPGVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusPGVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimeIntervalOp struct{}\n```\nMinusTimeIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimeIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimeOp struct{}\n```\nMinusTimeOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimeOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimeTZIntervalOp struct{}\n```\nMinusTimeTZIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimeTZIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampIntervalOp struct{}\n```\nMinusTimestampIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampOp struct{}\n```\nMinusTimestampOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampTZIntervalOp struct{}\n```\nMinusTimestampTZIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampTZIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampTZOp struct{}\n```\nMinusTimestampTZOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampTZOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampTZTimestampOp struct{}\n```\nMinusTimestampTZTimestampOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampTZTimestampOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MinusTimestampTimestampTZOp struct{}\n```\nMinusTimestampTimestampTZOp is a BinaryEvalOp.\n\n```go\nfunc (op *MinusTimestampTimestampTZOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModDecimalIntOp struct{}\n```\nModDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModDecimalOp struct{}\n```\nModDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModFloatOp struct{}\n```\nModFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModIntDecimalOp struct{}\n```\nModIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModIntOp struct{}\n```\nModIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype ModStringOp struct{}\n```\nModStringOp is a BinaryEvalOp.\n\n```go\nfunc (op *ModStringOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MoveCursor struct {\n\tCursorStmt\n}\n```\nMoveCursor represents a MOVE statement.\n\n```go\nfunc (m MoveCursor) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *MoveCursor) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*MoveCursor) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*MoveCursor) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *MoveCursor) String() string\n```\n\n```go\ntype MultDecimalIntOp struct{}\n```\nMultDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultDecimalIntervalOp struct{}\n```\nMultDecimalIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultDecimalIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultDecimalOp struct{}\n```\nMultDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultFloatIntervalOp struct{}\n```\nMultFloatIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultFloatIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultFloatOp struct{}\n```\nMultFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntDecimalOp struct{}\n```\nMultIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntIntervalOp struct{}\n```\nMultIntIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntOp struct{}\n```\nMultIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntervalDecimalOp struct{}\n```\nMultIntervalDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntervalDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntervalFloatOp struct{}\n```\nMultIntervalFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntervalFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultIntervalIntOp struct{}\n```\nMultIntervalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultIntervalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultPGVectorOp struct{}\n```\nMultPGVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *MultPGVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype MultipleResultsError struct {\n\tSQL string // the query that produced this error\n}\n```\nMultipleResultsError is returned by QueryRow when more than one result is encountered.\n\n```go\nfunc (e *MultipleResultsError) Error() string\n```\n\n```go\ntype Name string\n```\nA Name is an SQL identifier.\n\nIn general, a Name is the result of parsing a name nonterminal, which is used in the grammar where reserved keywords cannot be distinguished from identifiers. A Name that matches a reserved keyword must thus be quoted when formatted. (Names also need quoting for a variety of other reasons; see isBareIdentifier.)\n\nFor historical reasons, some Names are instead the result of parsing \\`unrestricted\\_name\\` nonterminals. See UnrestrictedName for details.\n\n```go\nfunc (n *Name) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n Name) Normalize() string\n```\nNormalize normalizes to lowercase and Unicode Normalization Form C (NFC).\n\n```go\nfunc (node *Name) String() string\n```\n\n```go\ntype NameList []Name\n```\nA NameList is a list of identifiers.\n\n```go\nfunc (l NameList) Contains(name Name) bool\n```\nContains returns true if the NameList contains the name.\n\n```go\nfunc (l *NameList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (list *NameList) String() string\n```\n\n```go\nfunc (l NameList) ToStrings() []string\n```\nToStrings converts the name list to an array of regular strings.\n\n```go\ntype NameParts = [4]string\n```\nNameParts is the array of strings that composes the path in an UnresolvedName.\n\n```go\ntype NamedColumnQualification struct {\n\tName          Name\n\tQualification ColumnQualification\n}\n```\nNamedColumnQualification wraps a NamedColumnQualification with a name.\n\n```go\ntype NaturalJoinCond struct{}\n```\nNaturalJoinCond represents a NATURAL join condition\n\n```go\nfunc (NaturalJoinCond) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype NegInnerProductVectorOp struct{}\n```\nNegInnerProductVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *NegInnerProductVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype NewParseContextOption func(ret *simpleParseContext)\n```\nNewParseContextOption is an option to NewParseContext.\n\n```go\nfunc NewParseContextOptionDateStyle(dateStyle pgdate.DateStyle) NewParseContextOption\n```\nNewParseContextOptionDateStyle sets the DateStyle for the context.\n\n```go\ntype NoReturningClause struct{}\n```\nNoReturningClause represents the absence of a RETURNING clause.\n\n```go\nfunc (*NoReturningClause) Format(_ *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype NodeFormatter interface {\n\t// Format performs pretty-printing towards a bytes buffer. The flags member\n\t// of ctx influences the results. Most callers should use FormatNode instead.\n\tFormat(ctx *FmtCtx)\n}\n```\nNodeFormatter is implemented by nodes that can be pretty-printed.\n\n```go\ntype NotExpr struct {\n\tExpr Expr\n\t// contains filtered or unexported fields\n}\n```\nNotExpr represents a NOT expression.\n\n```go\nfunc NewTypedNotExpr(expr TypedExpr) *NotExpr\n```\nNewTypedNotExpr returns a new NotExpr that is verified to be well-typed.\n\n```go\nfunc (node *NotExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *NotExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta NotExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *NotExpr) String() string\n```\n\n```go\nfunc (expr *NotExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *NotExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the NotExpr's inner expression as a TypedExpr.\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\t// contains filtered or unexported fields\n}\n```\nNullIfExpr represents a NULLIF expression.\n\n```go\nfunc (node *NullIfExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *NullIfExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta NullIfExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *NullIfExpr) String() string\n```\n\n```go\nfunc (expr *NullIfExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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\nfunc RandomNullability(rand *rand.Rand, nullableOnly bool) Nullability\n```\nRandomNullability returns a random valid Nullability, given a random number generator, \\`rand\\`. If nullableOnly is true, the random Nullability will not be \\`NotNull\\`.\n\n```go\ntype NullsOrder int8\n```\nNullsOrder for specifying ordering of NULLs.\n\n```go\nconst (\n\tDefaultNullsOrder NullsOrder = iota\n\tNullsFirst\n\tNullsLast\n)\n```\nNull order values.\n\n```go\nfunc (n NullsOrder) String() string\n```\n\n```go\ntype NumVal struct {\n\t// contains filtered or unexported fields\n}\n```\nNumVal represents a constant numeric value.\n\n```go\nfunc NewNumVal(value constant.Value, origString string, negative bool) *NumVal\n```\nNewNumVal constructs a new NumVal instance. This is used during parsing and in tests.\n\n```go\nfunc (expr *NumVal) AsConstantInt() (constant.Value, bool)\n```\nAsConstantInt returns the value as an constant.Int if possible, along with a flag indicating whether the conversion was possible. The result contains the proper sign as per expr.negative.\n\n```go\nfunc (expr *NumVal) AsConstantValue() constant.Value\n```\nAsConstantValue returns the value as a constant numerical value, with the proper sign as given by expr.negative.\n\n```go\nfunc (expr *NumVal) AsInt32() (int32, error)\n```\nAsInt32 returns the value as 32-bit integer if possible, or returns an error if not possible. The method will set expr.resInt32 to the value of this int32 if it is successful, avoiding the need to call the method again.\n\n```go\nfunc (expr *NumVal) AsInt64() (int64, error)\n```\nAsInt64 returns the value as a 64-bit integer if possible, or returns an error if not possible. The method will set expr.resInt64 to the value of this int64 if it is successful, avoiding the need to call the method again.\n\n```go\nfunc (expr *NumVal) AvailableTypes() []*types.T\n```\nAvailableTypes implements the Constant interface.\n\n```go\nfunc (expr *NumVal) DesirableTypes() []*types.T\n```\nDesirableTypes implements the Constant interface.\n\n```go\nfunc (expr *NumVal) ExactString() string\n```\nExactString implements the constant.Value interface.\n\n```go\nfunc (expr *NumVal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (expr *NumVal) Kind() constant.Kind\n```\nKind implements the constant.Value interface.\n\n```go\nfunc (expr *NumVal) Negate()\n```\nNegate sets the negative field to the opposite of its current value. The parser calls this to simplify unary negation expressions.\n\n```go\nfunc (expr *NumVal) OrigString() string\n```\nOrigString returns the origString field.\n\n```go\nfunc (expr *NumVal) ResolveAsType(\n\tctx context.Context, semaCtx *SemaContext, typ *types.T,\n) (TypedExpr, error)\n```\nResolveAsType implements the Constant interface.\n\n```go\nfunc (expr *NumVal) SetNegative()\n```\nSetNegative sets the negative field to true. The parser calls this when it identifies a negative constant.\n\n```go\nfunc (expr *NumVal) ShouldBeInt64() bool\n```\nShouldBeInt64 checks if the value naturally is an int64:\n\n\t1   = yes\n\t1.0 = no\n\t1.1 = no\n\t123...overflow...456 = no\n\n```go\nfunc (node *NumVal) String() string\n```\n\n```go\nfunc (expr *NumVal) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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 OIDTypeReference struct {\n\tOID oid.Oid\n}\n```\nOIDTypeReference is a reference to a type directly by its stable ID.\n\n```go\nfunc (node *OIDTypeReference) SQLString() string\n```\nSQLString implements the ResolvableTypeReference interface.\n\n```go\ntype ObjectLookupFlags struct {\n\t// Required specifies that the lookup will return an error if the item is\n\t// not found.\n\tRequired bool\n\t// RequireMutable specifies whether to return a mutable descriptor.\n\tRequireMutable bool\n\t// AssertNotLeased, if set, avoid the leased (possibly stale) version of the\n\t// descriptor. It must be set when callers want consistent reads.\n\tAssertNotLeased bool\n\t// IncludeOffline specifies if offline descriptors should be visible.\n\tIncludeOffline bool\n\t// AllowWithoutPrimaryKey specifies if tables without PKs can be resolved.\n\tAllowWithoutPrimaryKey bool\n\t// Control what type of object is being requested.\n\tDesiredObjectKind DesiredObjectKind\n\t// Control what kind of table object is being requested. This field is\n\t// only respected when DesiredObjectKind is TableObject.\n\tDesiredTableDescKind RequiredTableKind\n}\n```\nObjectLookupFlags is the flag struct suitable for GetObjectByName().\n\n```go\ntype ObjectName interface {\n\tNodeFormatter\n\tObject() string\n\tSchema() string\n\tCatalog() string\n\tFQString() string\n\t// contains filtered or unexported methods\n}\n```\nObjectName is a common interface for qualified object names.\n\n```go\ntype ObjectNamePrefix struct {\n\tCatalogName Name\n\tSchemaName  Name\n\n\t// ExplicitCatalog is true iff the catalog was explicitly specified\n\t// or it needs to be rendered during pretty-printing.\n\tExplicitCatalog bool\n\t// ExplicitSchema is true iff the schema was explicitly specified\n\t// or it needs to be rendered during pretty-printing.\n\tExplicitSchema bool\n}\n```\nObjectNamePrefix corresponds to the path prefix of an object name.\n\n```go\nfunc (tp *ObjectNamePrefix) Catalog() string\n```\nCatalog retrieves the unqualified catalog name.\n\n```go\nfunc (tp *ObjectNamePrefix) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (tp *ObjectNamePrefix) Schema() string\n```\nSchema retrieves the unqualified schema name.\n\n```go\nfunc (tp *ObjectNamePrefix) String() string\n```\n\n```go\ntype ObjectNamePrefixList []ObjectNamePrefix\n```\nObjectNamePrefixList is a list of ObjectNamePrefix\n\n```go\nfunc (tp ObjectNamePrefixList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ObserverStatement interface {\n\t// contains filtered or unexported methods\n}\n```\nObserverStatement is a marker interface for statements which are allowed to run regardless of the current transaction state: statements other than rollback are generally rejected if the session is in a failed transaction state, but it's convenient to allow some statements (e.g. \"show syntax; set tracing\"). Such statements are not expected to modify the database, the transaction or session state (other than special cases such as enabling/disabling tracing).\n\nThese statements short-circuit the regular execution - they don't get planned (there are no corresponding planNodes). The connExecutor recognizes them and handles them.\n\n```go\ntype OnConflict struct {\n\t// At most one of Columns and Constraint will be set at once.\n\t// Columns is the list of arbiter columns, if set, that the user specified\n\t// in the ON CONFLICT (columns) list.\n\tColumns NameList\n\t// Constraint is the name of a table constraint that the user specified to\n\t// get the list of arbiter columns from, in the ON CONFLICT ON CONSTRAINT\n\t// form.\n\tConstraint       Name\n\tArbiterPredicate Expr\n\tExprs            UpdateExprs\n\tWhere            *Where\n\tDoNothing        bool\n}\n```\nOnConflict represents an \\`ON CONFLICT (columns) WHERE arbiter DO UPDATE SET exprs WHERE where\\` clause.\n\nThe zero value for OnConflict is used to signal the UPSERT short form, which uses the primary key for as the conflict index and the values being inserted for Exprs.\n\n```go\nfunc (oc *OnConflict) IsUpsertAlias() bool\n```\nIsUpsertAlias returns true if the UPSERT syntactic sugar was used.\n\n```go\ntype OnJoinCond struct {\n\tExpr Expr\n}\n```\nOnJoinCond represents an ON join condition.\n\n```go\nfunc (node *OnJoinCond) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype OpEvaluator interface {\n\tUnaryOpEvaluator\n\tBinaryOpEvaluator\n}\n```\nOpEvaluator is an evaluator for UnaryEvalOp and BinaryEvalOp operations.\n\n```go\ntype Operator interface {\n\tOperator()\n}\n```\nOperator is used to identify Operators; used in sql.y.\n\n```go\ntype OrExpr struct {\n\tLeft, Right Expr\n\t// contains filtered or unexported fields\n}\n```\nOrExpr represents an OR expression.\n\n```go\nfunc NewTypedOrExpr(left, right TypedExpr) *OrExpr\n```\nNewTypedOrExpr returns a new OrExpr that is verified to be well-typed.\n\n```go\nfunc (node *OrExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *OrExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta OrExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *OrExpr) String() string\n```\n\n```go\nfunc (expr *OrExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *OrExpr) TypedLeft() TypedExpr\n```\nTypedLeft returns the OrExpr's left expression as a TypedExpr.\n\n```go\nfunc (node *OrExpr) TypedRight() TypedExpr\n```\nTypedRight returns the OrExpr's right expression as a TypedExpr.\n\n```go\nfunc (expr *OrExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Order struct {\n\tOrderType  OrderType\n\tExpr       Expr\n\tDirection  Direction\n\tNullsOrder NullsOrder\n\t// Table/Index replaces Expr when OrderType = OrderByIndex.\n\tTable TableName\n\t// If Index is empty, then the order should use the primary key.\n\tIndex UnrestrictedName\n}\n```\nOrder represents an ordering expression.\n\n```go\nfunc (node *Order) Equal(other *Order) bool\n```\nEqual checks if the node ordering is equivalent to other.\n\n```go\nfunc (node *Order) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype OrderBy []*Order\n```\nOrderBy represents an ORDER BY clause.\n\n```go\nfunc (node *OrderBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype OrderType int\n```\nOrderType indicates which type of expression is used in ORDER BY.\n\n```go\nconst (\n\t// OrderByColumn is the regular \"by expression/column\" ORDER BY specification.\n\tOrderByColumn OrderType = iota\n\t// OrderByIndex enables the user to specify a given index' columns implicitly.\n\tOrderByIndex\n)\n```\n\n```go\ntype OverlapsArrayOp struct{}\n```\nOverlapsArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *OverlapsArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype OverlapsINetOp struct{}\n```\nOverlapsINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *OverlapsINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype Overload struct {\n\tTypes      TypeList\n\tReturnType ReturnTyper\n\tVolatility volatility.V\n\tOverloadPreference\n\n\t// Info is a description of the function, which is surfaced on the CockroachDB\n\t// docs site on the \"Functions and Operators\" page. Descriptions typically use\n\t// third-person with the function as an implicit subject (e.g. \"Calculates\n\t// infinity\"), but should focus more on ease of understanding so other structures\n\t// might be more appropriate.\n\tInfo string\n\n\tAggregateFunc AggregateOverload\n\tWindowFunc    WindowOverload\n\n\t// Class is the kind of built-in function (normal/aggregate/window/etc.)\n\tClass FunctionClass\n\n\t// Fn is the normal builtin implementation function. It's for functions that\n\t// take in Datums and return a Datum.\n\t//\n\t// The opaque wrapper needs to be type asserted into eval.FnOverload.\n\tFn FnOverload\n\n\t// FnWithExprs is for builtins that need access to their arguments as Exprs\n\t// and not pre-evaluated Datums, but is otherwise identical to Fn.\n\tFnWithExprs FnWithExprsOverload\n\n\t// Generator is for SRFs. SRFs take Datums and return multiple rows of Datums.\n\tGenerator GeneratorOverload\n\n\t// GeneratorWithExprs is for SRFs that need access to their arguments as Exprs\n\t// and not pre-evaluated Datums, but is otherwise identical to Generator.\n\tGeneratorWithExprs GeneratorWithExprsOverload\n\n\t// SQLFn must be set for overloads of type SQLClass. It should return a SQL\n\t// statement which will be executed as a common table expression in the query.\n\tSQLFn SQLFnOverload\n\n\t// OnTypeCheck, if set, is called every time this overload is type checked.\n\tOnTypeCheck func()\n\n\t// SpecializedVecBuiltin is used to let the vectorized engine\n\t// know when an Overload has a specialized vectorized operator.\n\tSpecializedVecBuiltin SpecializedVectorizedBuiltin\n\n\t// IgnoreVolatilityCheck ignores checking the functions overload's\n\t// Volatility against Postgres's Volatility at test time.\n\t// This should be used with caution.\n\tIgnoreVolatilityCheck bool\n\n\t// Oid is the cached oidHasher.BuiltinOid result for this Overload. It's\n\t// populated at init-time.\n\tOid oid.Oid\n\n\t// DistsqlBlocklist is set to true when a function cannot be evaluated in\n\t// DistSQL. One example is when the type information for function arguments\n\t// cannot be recovered.\n\tDistsqlBlocklist bool\n\n\t// CalledOnNullInput is set to true when a function is called when any of\n\t// its inputs are NULL. When true, the function implementation must be able\n\t// to handle NULL arguments.\n\t//\n\t// When set to false, the function will directly result in NULL in the\n\t// presence of any NULL arguments without evaluating the function's\n\t// implementation. Therefore, if the function is expected to produce\n\t// side-effects with a NULL argument, CalledOnNullInput must be true. Note\n\t// that if this behavior changes so that CalledOnNullInput=false functions\n\t// can produce side-effects, the FoldFunctionWithNullArg optimizer rule must\n\t// be changed to avoid folding those functions.\n\t//\n\t// NOTE: when set, a function should be prepared for any of its arguments to\n\t// be NULL and should act accordingly.\n\tCalledOnNullInput bool\n\n\t// FunctionProperties are the properties of this overload.\n\tFunctionProperties\n\n\t// Type indicates if the overload represents a built-in function, a\n\t// user-defined function, or a user-defined procedure.\n\tType RoutineType\n\t// Body is the SQL string body of a function. It can be set even if Type is\n\t// BuiltinRoutine if a builtin function is defined using a SQL string.\n\tBody string\n\t// UDFContainsOnlySignature is only set to true for Overload signatures cached\n\t// in a Schema descriptor, which means that the full UDF descriptor need to be\n\t// fetched to get more info, e.g. function Body.\n\tUDFContainsOnlySignature bool\n\t// Version is the descriptor version of the descriptor used to construct\n\t// this version of the function overload. Only used for UDFs.\n\tVersion uint64\n\t// Language is the function language that was used to define the UDF.\n\t// This is currently either SQL or PL/pgSQL.\n\tLanguage RoutineLanguage\n\t// RoutineParams contains all parameter information of the routine.\n\t//\n\t// Note that unlike Types (which only contains input parameters and defines\n\t// the signature of the function), RoutineParams contains all parameters as\n\t// well as their class.\n\tRoutineParams RoutineParams\n\t// OutParamOrdinals contains all ordinals of OUT parameters among all\n\t// parameters in the overload definition. For example, if the function /\n\t// procedure has a definition like\n\t//   (IN p0, INOUT p1, OUT p2, INOUT p3, OUT p4),\n\t// then OutParamOrdinals will contain [2, 4] (while ArgTypes will contain\n\t// types of [p0, p1, p3]).\n\t//\n\t// On the main code path it is only set when UDFContainsOnlySignature is\n\t// true (meaning that we only had access to the FunctionSignature proto).\n\tOutParamOrdinals []int32\n\t// OutParamTypes contains types of all OUT parameters (it has 1-to-1 match\n\t// with OutParamOrdinals).\n\tOutParamTypes TypeList\n\t// DefaultExprs specifies all DEFAULT expressions for input parameters.\n\t// Since the arguments can only be omitted from the end of the actual\n\t// argument list, we know exactly which input parameter each DEFAULT\n\t// expression corresponds to.\n\t//\n\t// On the main code path it is only set when UDFContainsOnlySignature is\n\t// true (meaning that we only had access to the FunctionSignature proto). If\n\t// UDFContainsOnlySignature is false, then DEFAULT expressions are included\n\t// into RoutineParams.\n\tDefaultExprs Exprs\n\n\t// SecurityMode is true when privilege checks during function execution\n\t// should be performed against the function owner rather than the invoking\n\t// user.\n\tSecurityMode RoutineSecurity\n}\n```\nOverload is one of the overloads of a built-in function. Each FunctionDefinition may contain one or more overloads.\n\n```go\nfunc (b Overload) FixedReturnType() *types.T\n```\nFixedReturnType returns a fixed type that the function returns, returning AnyElement if the return type is based on the function's arguments.\n\n```go\nfunc (b Overload) HasSQLBody() bool\n```\nHasSQLBody returns true if the function was defined using a SQL string body. This is the case for user-defined functions and some builtins.\n\n```go\nfunc (b Overload) InferReturnTypeFromInputArgTypes(inputTypes []*types.T) *types.T\n```\nInferReturnTypeFromInputArgTypes returns the type that the function returns, inferring the type based on the function's inputTypes if necessary.\n\n```go\nfunc (b Overload) IsGenerator() bool\n```\nIsGenerator returns true if the function is a set returning function (SRF).\n\n```go\nfunc (b Overload) Signature(simplify bool) string\n```\nSignature returns a human-readable signature. If simplify is bool, tuple-returning functions with just 1 tuple element unwrap the return type in the signature.\n\n```go\nfunc (b Overload) SignatureWithDefaults(simplify bool, includeDefaults bool) string\n```\nSignatureWithDefaults is the same as Signature but also allows specifying whether DEFAULT expressions should be included.\n\n```go\ntype OverloadPreference int\n```\nOverloadPreference is used to disambiguate between eligible overload candidates during type-checking. When multiple overloads are eligible based on types even after applying all the other disambiguation heuristics, the overload with the highest preference will be chosen, if no other overloads have the same preference.\n\nNOTE: This is a hack that is necessary because we do not follow all of Postgres's type conversion rules. It should be used sparingly. See #75101.\n\n```go\ntype ParamType struct {\n\tName string\n\tTyp  *types.T\n}\n```\nParamType encapsulate a function parameter name and type.\n\n```go\ntype ParamTypes []ParamType\n```\nParamTypes is a list of function parameter names and their types.\n\n```go\nfunc (p ParamTypes) GetAt(i int) *types.T\n```\nGetAt is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) Length() int\n```\nLength is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) Match(types []*types.T) bool\n```\nMatch is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) MatchAt(typ *types.T, i int) bool\n```\nMatchAt is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) MatchAtOid(typ *types.T, i int) bool\n```\nMatchAtIdentical is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) MatchLen(l int) bool\n```\nMatchLen is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) MatchOid(types []*types.T) bool\n```\nMatchIdentical is part of the TypeList interface.\n\n```go\nfunc (p ParamTypes) String() string\n```\n\n```go\nfunc (p ParamTypes) StringWithDefaultExprs(defaultExprs []Expr) string\n```\nStringWithDefaultExprs extends the stringified form of ParamTypes with the corresponding DEFAULT expressions. defaultExprs is expected to have length no longer than p and to correspond to the \"suffix\" of p.\n\n```go\nfunc (p ParamTypes) Types() []*types.T\n```\nTypes is part of the TypeList interface.\n\n```go\ntype ParenExpr struct {\n\tExpr Expr\n\t// contains filtered or unexported fields\n}\n```\nParenExpr represents a parenthesized expression.\n\n```go\nfunc (node *ParenExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *ParenExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta ParenExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *ParenExpr) String() string\n```\n\n```go\nfunc (expr *ParenExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *ParenExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the ParenExpr's inner expression as a TypedExpr.\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 (node *ParenSelect) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ParenSelect) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ParenTableExpr) String() string\n```\n\n```go\nfunc (expr *ParenTableExpr) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype ParseContext interface {\n\t// GetRelativeParseTime returns the transaction time in the session's\n\t// timezone (i.e. now()). This is used to calculate relative dates,\n\t// like \"tomorrow\", and also provides a default time.Location for\n\t// parsed times.\n\tGetRelativeParseTime() time.Time\n\t// GetCollationEnv returns the collation environment.\n\tGetCollationEnv() *CollationEnvironment\n\t// GetIntervalStyle returns the interval style in the session.\n\tGetIntervalStyle() duration.IntervalStyle\n\t// GetDateStyle returns the date style in the session.\n\tGetDateStyle() pgdate.DateStyle\n\t// GetDateHelper returns a helper to optimize parsing of datetime types.\n\tGetDateHelper() *pgdate.ParseHelper\n}\n```\nParseContext provides the information necessary for parsing dates. A nil value is generally acceptable and will result in reasonable defaults being applied.\n\n```go\nfunc NewParseContext(relativeParseTime time.Time, opts ...NewParseContextOption) ParseContext\n```\nNewParseContext constructs a ParseContext that returns the given values.\n\n```go\ntype PartitionBy struct {\n\tFields NameList\n\t// Exactly one of List or Range is required to be non-empty.\n\tList  []ListPartition\n\tRange []RangePartition\n}\n```\nPartitionBy represents an PARTITION BY definition within a CREATE/ALTER TABLE/INDEX statement or within a subpartition statement. This is wrapped by top level PartitionByTable/PartitionByIndex structs for table and index definitions respectively.\n\n```go\nfunc (node *PartitionBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype PartitionByIndex struct {\n\t*PartitionBy\n}\n```\nPartitionByIndex represents a PARTITION BY definition within a CREATE/ALTER INDEX statement.\n\n```go\nfunc (node *PartitionByIndex) ContainsPartitioningClause() bool\n```\nContainsPartitioningClause determines if the partition by table contains a partitioning clause, including PARTITION BY NOTHING.\n\n```go\nfunc (node *PartitionByIndex) ContainsPartitions() bool\n```\nContainsPartitions determines if the partition by table contains a partition clause which is not PARTITION BY NOTHING.\n\n```go\ntype PartitionByTable struct {\n\t// All denotes PARTITION ALL BY.\n\tAll bool\n\n\t*PartitionBy\n}\n```\nPartitionByTable represents a PARTITION \\[ALL] BY definition within a CREATE/ALTER TABLE statement.\n\n```go\nfunc (node *PartitionByTable) ContainsPartitioningClause() bool\n```\nContainsPartitioningClause determines if the partition by table contains a partitioning clause, including PARTITION BY NOTHING.\n\n```go\nfunc (node *PartitionByTable) ContainsPartitions() bool\n```\nContainsPartitions determines if the partition by table contains a partition clause which is not PARTITION BY NOTHING.\n\n```go\nfunc (node *PartitionByTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype PartitionByType string\n```\nPartitionByType is an enum of each type of partitioning (LIST/RANGE).\n\n```go\nconst (\n\t// PartitionByList indicates a PARTITION BY LIST clause.\n\tPartitionByList PartitionByType = \"LIST\"\n\t// PartitionByRange indicates a PARTITION BY LIST clause.\n\tPartitionByRange PartitionByType = \"RANGE\"\n)\n```\n\n```go\ntype PartitionMaxVal struct{}\n```\nPartitionMaxVal represents the MAXVALUE expression.\n\n```go\nfunc (node PartitionMaxVal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node PartitionMaxVal) String() string\n```\n\n```go\nfunc (expr PartitionMaxVal) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr PartitionMaxVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype PartitionMinVal struct{}\n```\nPartitionMinVal represents the MINVALUE expression.\n\n```go\nfunc (node PartitionMinVal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node PartitionMinVal) String() string\n```\n\n```go\nfunc (expr PartitionMinVal) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr PartitionMinVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype Persistence int\n```\nPersistence defines the persistence strategy for a given table.\n\n```go\nconst (\n\t// PersistencePermanent indicates a permanent table.\n\tPersistencePermanent Persistence = iota\n\t// PersistenceTemporary indicates a temporary table.\n\tPersistenceTemporary\n\t// PersistenceUnlogged indicates an unlogged table.\n\t// Note this state is not persisted on disk and is used at parse time only.\n\tPersistenceUnlogged\n)\n```\n\n```go\nfunc (p Persistence) IsTemporary() bool\n```\nIsTemporary returns whether the Persistence value is Temporary.\n\n```go\nfunc (p Persistence) IsUnlogged() bool\n```\nIsUnlogged returns whether the Persistence value is Unlogged.\n\n```go\ntype Placeholder struct {\n\tIdx PlaceholderIdx\n\t// contains filtered or unexported fields\n}\n```\nPlaceholder represents a named placeholder.\n\n```go\nfunc NewPlaceholder(name string) (*Placeholder, error)\n```\nNewPlaceholder allocates a Placeholder.\n\n```go\nfunc (d *Placeholder) AmbiguousFormat() bool\n```\nAmbiguousFormat implements the Datum interface.\n\n```go\nfunc (d *Placeholder) Compare(\n\tctx context.Context, cmpCtx CompareContext, other Datum,\n) (int, error)\n```\nCompare implements the Datum interface.\n\n```go\nfunc (node *Placeholder) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *Placeholder) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (d *Placeholder) IsMax(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMax implements the Datum interface.\n\n```go\nfunc (d *Placeholder) IsMin(ctx context.Context, cmpCtx CompareContext) bool\n```\nIsMin implements the Datum interface.\n\n```go\nfunc (d *Placeholder) Max(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMax implements the Datum interface.\n\n```go\nfunc (d *Placeholder) Min(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nMin implements the Datum interface.\n\n```go\nfunc (d *Placeholder) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nNext implements the Datum interface.\n\n```go\nfunc (d *Placeholder) Prev(ctx context.Context, cmpCtx CompareContext) (Datum, bool)\n```\nPrev implements the Datum interface.\n\n```go\nfunc (node *Placeholder) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (d *Placeholder) Size() uintptr\n```\nSize implements the Datum interface.\n\n```go\nfunc (node *Placeholder) String() string\n```\n\n```go\nfunc (expr *Placeholder) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *Placeholder) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype PlaceholderIdx uint16\n```\nPlaceholderIdx is the 0-based index of a placeholder. Placeholder \"$1\" has PlaceholderIdx=0.\n\n```go\nfunc (idx PlaceholderIdx) SafeValue()\n```\nSafeValue implements the redact.SafeValue interface.\n\n```go\nfunc (idx PlaceholderIdx) String() string\n```\nString returns the index as a placeholder string representation ($1, $2 etc).\n\n```go\ntype PlaceholderInfo struct {\n\tPlaceholderTypesInfo\n\n\tValues QueryArguments\n}\n```\nPlaceholderInfo defines the interface to SQL placeholders.\n\n```go\nfunc (p *PlaceholderInfo) Assign(src *PlaceholderInfo, numPlaceholders int)\n```\nAssign resets the PlaceholderInfo to the contents of src. If src is nil, a new structure is initialized.\n\n```go\nfunc (p *PlaceholderInfo) Init(numPlaceholders int, typeHints PlaceholderTypes)\n```\nInit initializes a PlaceholderInfo structure appropriate for the given number of placeholders, and with the given (optional) type hints.\n\n```go\nfunc (p *PlaceholderInfo) IsUnresolvedPlaceholder(expr Expr) bool\n```\nIsUnresolvedPlaceholder returns whether expr is an unresolved placeholder. In other words, it returns whether the provided expression is a placeholder expression or a placeholder expression within nested parentheses, and if so, whether the placeholder's type remains unset in the PlaceholderInfo.\n\n```go\nfunc (p *PlaceholderInfo) MaybeExtendTypes()\n```\nMaybeExtendTypes is to fill the nil types with the type hints, if exists.\n\n```go\nfunc (p *PlaceholderInfo) Value(idx PlaceholderIdx) (TypedExpr, bool)\n```\nValue returns the known value of a placeholder.  Returns false in the 2nd value if the placeholder does not have a value.\n\n```go\ntype PlaceholderTypes []*types.T\n```\nPlaceholderTypes stores placeholder types (or type hints), one per PlaceholderIdx.  The slice is always pre-allocated to the number of placeholders in the statement. Entries that don't yet have a type are nil.\n\n```go\nfunc (pt PlaceholderTypes) AssertAllSet() error\n```\nAssertAllSet verifies that all types have been set and returns an error otherwise.\n\n```go\nfunc (pt PlaceholderTypes) Identical(other PlaceholderTypes) bool\n```\nIdentical returns true if two PlaceholderTypes contain the same types.\n\n```go\ntype PlaceholderTypesInfo struct {\n\t// TypeHints contains the initially set type hints for each placeholder if\n\t// present. It is not changed during query type checking.\n\tTypeHints PlaceholderTypes\n\t// Types contains the final types set for each placeholder after type\n\t// checking.\n\tTypes PlaceholderTypes\n}\n```\nPlaceholderTypesInfo encapsulates typing information for placeholders.\n\n```go\nfunc (p *PlaceholderTypesInfo) SetType(idx PlaceholderIdx, typ *types.T) error\n```\nSetType assigns a known type to a placeholder. Reports an error if another type was previously assigned.\n\n```go\nfunc (p *PlaceholderTypesInfo) Type(idx PlaceholderIdx) (_ *types.T, ok bool, _ error)\n```\nType returns the known type of a placeholder. If there is no known type yet but there is a type hint, returns the type hint.\n\n```go\nfunc (p *PlaceholderTypesInfo) ValueType(idx PlaceholderIdx) (_ *types.T, ok bool)\n```\nValueType returns the type of the value that must be supplied for a placeholder. This is the type hint given by the client if there is one, or the placeholder type if there isn't one. This can differ from Type(idx) when a client hint is overridden (see Placeholder.Eval).\n\n```go\ntype PlusDateIntOp struct{}\n```\nPlusDateIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDateIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDateIntervalOp struct{}\n```\nPlusDateIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDateIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDateTimeOp struct{}\n```\nPlusDateTimeOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDateTimeOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDateTimeTZOp struct{}\n```\nPlusDateTimeTZOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDateTimeTZOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDecimalIntOp struct{}\n```\nPlusDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDecimalOp struct{}\n```\nPlusDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusDecimalPGLSNOp struct{}\n```\nPlusDecimalPGLSNOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusDecimalPGLSNOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusFloatOp struct{}\n```\nPlusFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusINetIntOp struct{}\n```\nPlusINetIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusINetIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntDateOp struct{}\n```\nPlusIntDateOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntDateOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntDecimalOp struct{}\n```\nPlusIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntINetOp struct{}\n```\nPlusIntINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntOp struct{}\n```\nPlusIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalDateOp struct{}\n```\nPlusIntervalDateOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalDateOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalOp struct{}\n```\nPlusIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalTimeOp struct{}\n```\nPlusIntervalTimeOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalTimeOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalTimeTZOp struct{}\n```\nPlusIntervalTimeTZOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalTimeTZOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalTimestampOp struct{}\n```\nPlusIntervalTimestampOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalTimestampOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusIntervalTimestampTZOp struct{}\n```\nPlusIntervalTimestampTZOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusIntervalTimestampTZOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusPGLSNDecimalOp struct{}\n```\nPlusPGLSNDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusPGLSNDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusPGVectorOp struct{}\n```\nPlusPGVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusPGVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimeDateOp struct{}\n```\nPlusTimeDateOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimeDateOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimeIntervalOp struct{}\n```\nPlusTimeIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimeIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimeTZDateOp struct{}\n```\nPlusTimeTZDateOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimeTZDateOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimeTZIntervalOp struct{}\n```\nPlusTimeTZIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimeTZIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimestampIntervalOp struct{}\n```\nPlusTimestampIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimestampIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PlusTimestampTZIntervalOp struct{}\n```\nPlusTimestampTZIntervalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PlusTimestampTZIntervalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PolicyCommand int\n```\nPolicyCommand represents the type of commands a row-level security policy will apply against.\n\n```go\nconst (\n\tPolicyCommandDefault PolicyCommand = iota\n\tPolicyCommandAll\n\tPolicyCommandSelect\n\tPolicyCommandInsert\n\tPolicyCommandUpdate\n\tPolicyCommandDelete\n)\n```\nPolicyCommand values\n\n```go\nfunc (p PolicyCommand) SafeValue()\n```\nSafeValue implements the redact.SafeValue interface.\n\n```go\nfunc (p PolicyCommand) String() string\n```\n\n```go\ntype PolicyExpressions struct {\n\tUsing     Expr\n\tWithCheck Expr\n}\n```\n\n```go\nfunc (node *PolicyExpressions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface\n\n```go\ntype PolicyType int\n```\nPolicyType represents the type of the row-level security policy.\n\n```go\nconst (\n\tPolicyTypeDefault PolicyType = iota\n\tPolicyTypePermissive\n\tPolicyTypeRestrictive\n)\n```\nPolicyType values\n\n```go\nfunc (p PolicyType) SafeValue()\n```\nSafeValue implements the redact.SafeValue interface.\n\n```go\nfunc (p PolicyType) String() string\n```\n\n```go\ntype PowDecimalIntOp struct{}\n```\nPowDecimalIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PowDecimalIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PowDecimalOp struct{}\n```\nPowDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PowDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PowFloatOp struct{}\n```\nPowFloatOp is a BinaryEvalOp.\n\n```go\nfunc (op *PowFloatOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PowIntDecimalOp struct{}\n```\nPowIntDecimalOp is a BinaryEvalOp.\n\n```go\nfunc (op *PowIntDecimalOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PowIntOp struct{}\n```\nPowIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *PowIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype Prepare struct {\n\tName      Name\n\tTypes     []ResolvableTypeReference\n\tStatement Statement\n}\n```\nPrepare represents a PREPARE statement.\n\n```go\nfunc (node *Prepare) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Prepare) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Prepare) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Prepare) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Prepare) String() string\n```\n\n```go\ntype PrepareTransaction struct {\n\tTransaction *StrVal\n}\n```\nPrepareTransaction represents a PREPARE TRANSACTION \\\u003ctransaction-id\u003e statement, used for the first phase of a two-phase commit.\n\n```go\nfunc (node *PrepareTransaction) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*PrepareTransaction) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*PrepareTransaction) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*PrepareTransaction) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *PrepareTransaction) String() string\n```\n\n```go\ntype PrependToMaybeNullArrayOp struct {\n\tTyp *types.T\n}\n```\nPrependToMaybeNullArrayOp is a BinaryEvalOp.\n\n```go\nfunc (op *PrependToMaybeNullArrayOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype PrettyAlignMode int\n```\nPrettyAlignMode directs which alignment mode to use.\n\nTODO(knz/mjibson): this variety of options currently exists so as to enable comparisons and gauging individual preferences. We should aim to remove some or all of these options in the future.\n\n```go\ntype PrettyCfg struct {\n\t// LineWidth is the desired maximum line width.\n\tLineWidth int\n\t// TabWidth is the amount of spaces to use for tabs when UseTabs is\n\t// false.\n\tTabWidth int\n\t// DoNotNewLineAfterColName is true if we do not new line after table column names.\n\tDoNotNewLineAfterColName bool\n\t// Align, when set to another value than PrettyNoAlign, uses\n\t// alignment for some constructs as a first choice. If not set or if\n\t// the line width is insufficient, nesting is used instead.\n\tAlign PrettyAlignMode\n\t// UseTabs indicates whether to use tab chars to signal indentation.\n\tUseTabs bool\n\t// Simplify, when set, removes extraneous parentheses.\n\tSimplify bool\n\t// Case, if set, transforms case-insensitive strings (like SQL keywords).\n\tCase func(string) string\n\t// JSONFmt, when set, pretty-prints strings that are asserted or cast\n\t// to JSON.\n\tJSONFmt bool\n\t// ValueRedaction, when set, surrounds literal values with redaction markers.\n\tValueRedaction bool\n\t// FmtFlags specifies FmtFlags to use when formatting expressions.\n\tFmtFlags FmtFlags\n}\n```\nPrettyCfg holds configuration for pretty printing statements.\n\n```go\nfunc DefaultPrettyCfg() PrettyCfg\n```\nDefaultPrettyCfg returns a PrettyCfg with the default configuration.\n\n```go\nfunc (p *PrettyCfg) Doc(f NodeFormatter) pretty.Doc\n```\nDoc converts f (generally a Statement) to a pretty.Doc. If f does not have a native conversion, its .Format representation is used as a simple Text Doc.\n\n```go\nfunc (p *PrettyCfg) Pretty(stmt NodeFormatter) (string, error)\n```\nPretty pretty prints stmt with specified options.\n\n```go\ntype PrimaryKeyConstraint struct {\n\tStorageParams StorageParams\n}\n```\nPrimaryKeyConstraint represents PRIMARY KEY on a column.\n\n```go\ntype QualifiedNameResolver interface {\n\tGetQualifiedTableNameByID(ctx context.Context, id int64, requiredType RequiredTableKind) (*TableName, error)\n\tGetQualifiedFunctionNameByID(ctx context.Context, id int64) (*RoutineName, error)\n\tCurrentDatabase() string\n}\n```\nQualifiedNameResolver is the helper interface to resolve qualified table names given an ID and the required table kind, as well as the current database to determine whether or not to include the database in the qualification.\n\n```go\ntype QualifiedOverload struct {\n\tSchema string\n\t*Overload\n}\n```\nQualifiedOverload is a wrapper of Overload prefixed with a schema name. It indicates that the overload is defined with the specified schema.\n\n```go\nfunc MakeQualifiedOverload(schema string, overload *Overload) QualifiedOverload\n```\nMakeQualifiedOverload creates a new QualifiedOverload.\n\n```go\ntype QueryArguments []TypedExpr\n```\nQueryArguments stores query arguments, one per PlaceholderIdx.\n\nA nil value represents a NULL argument.\n\n```go\nfunc (qa QueryArguments) String() string\n```\n\n```go\ntype RShiftINetOp struct{}\n```\nRShiftINetOp is a BinaryEvalOp.\n\n```go\nfunc (op *RShiftINetOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype RShiftIntOp struct{}\n```\nRShiftIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *RShiftIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype RShiftVarBitIntOp struct{}\n```\nRShiftVarBitIntOp is a BinaryEvalOp.\n\n```go\nfunc (op *RShiftVarBitIntOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype RangeCond struct {\n\tNot       bool\n\tSymmetric bool\n\tLeft      Expr\n\tFrom, To  Expr\n\t// contains filtered or unexported fields\n}\n```\nRangeCond represents a BETWEEN \\[SYMMETRIC] or a NOT BETWEEN \\[SYMMETRIC] expression.\n\n```go\nfunc (node *RangeCond) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *RangeCond) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ta RangeCond) ResolvedType() *types.T\n```\n\n```go\nfunc (node *RangeCond) String() string\n```\n\n```go\nfunc (expr *RangeCond) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *RangeCond) TypedFrom() TypedExpr\n```\nTypedFrom returns the RangeCond's from expression as a TypedExpr.\n\n```go\nfunc (node *RangeCond) TypedLeftFrom() TypedExpr\n```\nTypedLeftFrom returns the RangeCond's left expression as a TypedExpr, in the context of a comparison with TypedFrom().\n\n```go\nfunc (node *RangeCond) TypedLeftTo() TypedExpr\n```\nTypedLeftTo returns the RangeCond's left expression as a TypedExpr, in the context of a comparison with TypedTo().\n\n```go\nfunc (node *RangeCond) TypedTo() TypedExpr\n```\nTypedTo returns the RangeCond's to expression as a TypedExpr.\n\n```go\nfunc (expr *RangeCond) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype RangePartition struct {\n\tName         Name\n\tFrom         Exprs\n\tTo           Exprs\n\tSubpartition *PartitionBy\n}\n```\nRangePartition represents a PARTITION definition within a PARTITION BY RANGE.\n\n```go\nfunc (node *RangePartition) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RawRows [][]TypedExpr\n```\nRawRows exposes a \\[]\\[]TypedExpr as an ExprContainer.\n\n```go\nfunc (r RawRows) Get(i, j int) Expr\n```\nGet implements the ExprContainer interface.\n\n```go\nfunc (r RawRows) NumCols() int\n```\nNumCols implements the ExprContainer interface.\n\n```go\nfunc (r RawRows) NumRows() int\n```\nNumRows implements the ExprContainer interface.\n\n```go\ntype ReadWriteMode int\n```\nReadWriteMode holds the read write mode for a transaction.\n\n```go\nconst (\n\tUnspecifiedReadWriteMode ReadWriteMode = iota\n\tReadOnly\n\tReadWrite\n)\n```\nReadWriteMode values\n\n```go\nfunc (ro ReadWriteMode) String() string\n```\n\n```go\ntype ReassignOwnedBy struct {\n\tOldRoles RoleSpecList\n\tNewRole  RoleSpec\n}\n```\nReassignOwnedBy represents a REASSIGN OWNED BY \\\u003cname\u003e TO \\\u003cname\u003e statement.\n\n```go\nfunc (node *ReassignOwnedBy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ReassignOwnedBy) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ReassignOwnedBy) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ReassignOwnedBy) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ReassignOwnedBy) String() string\n```\n\n```go\ntype ReferenceAction semenumpb.ForeignKeyAction\n```\nReferenceAction is the method used to maintain referential integrity through foreign keys.\n\n```go\nconst (\n\tNoAction ReferenceAction = iota\n\tRestrict\n\tSetNull\n\tSetDefault\n\tCascade\n)\n```\nThe values for ReferenceAction. It has a one-to-one mapping to semenumpb.ForeignKeyAction.\n\n```go\nfunc (x ReferenceAction) String() string\n```\nString implements the fmt.Stringer interface.\n\n```go\ntype ReferenceActions struct {\n\tDelete ReferenceAction\n\tUpdate ReferenceAction\n}\n```\nReferenceActions contains the actions specified to maintain referential integrity through foreign keys for different operations.\n\n```go\nfunc (node *ReferenceActions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ReferenceActions) HasDisallowedActionForComputedFKCol() bool\n```\nHasDisallowedActionForComputedFKCol return true if an action is set that isn't compatible with an FK over computed columns.\n\n```go\nfunc (node *ReferenceActions) HasUpdateAction() bool\n```\nHasUpdateAction returns true if any update action is set.\n\n```go\ntype RefreshDataOption int\n```\nRefreshDataOption corresponds to arguments for the REFRESH MATERIALIZED VIEW statement.\n\n```go\nconst (\n\t// RefreshDataDefault refers to no option provided to the REFRESH MATERIALIZED\n\t// VIEW statement.\n\tRefreshDataDefault RefreshDataOption = iota\n\t// RefreshDataWithData refers to the WITH DATA option provided to the REFRESH\n\t// MATERIALIZED VIEW statement.\n\tRefreshDataWithData\n\t// RefreshDataClear refers to the WITH NO DATA option provided to the REFRESH\n\t// MATERIALIZED VIEW statement.\n\tRefreshDataClear\n)\n```\n\n```go\ntype RefreshMaterializedView struct {\n\tName              *UnresolvedObjectName\n\tConcurrently      bool\n\tRefreshDataOption RefreshDataOption\n\tAsOf              AsOfClause\n}\n```\nRefreshMaterializedView represents a REFRESH MATERIALIZED VIEW statement.\n\n```go\nfunc (node *RefreshMaterializedView) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RefreshMaterializedView) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*RefreshMaterializedView) StatementTag() string\n```\nStatementTag implements the Statement interface.\n\n```go\nfunc (*RefreshMaterializedView) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *RefreshMaterializedView) String() string\n```\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) GetRegexpWithFlags(\n\tkey RegexpCacheKey, flags syntax.Flags,\n) (*regexp.Regexp, error)\n```\nGetRegexpWithFlags consults the cache for the regular expressions stored for the given key, compiling the key's pattern with the given flags 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 RegexpCacheKey interface {\n\tPattern() (string, error)\n}\n```\nRegexpCacheKey allows cache keys to take the form of different types, as long as they are comparable and can produce a pattern when needed for regexp compilation. The pattern method will not be called until after a cache lookup is performed and the result is a miss.\n\n```go\ntype ReleaseSavepoint struct {\n\tSavepoint Name\n}\n```\nReleaseSavepoint represents a RELEASE SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (node *ReleaseSavepoint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ReleaseSavepoint) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ReleaseSavepoint) String() string\n```\n\n```go\ntype Relocate struct {\n\t// TODO(a-robinson): It's not great that this can only work on ranges that\n\t// are part of a currently valid table or index.\n\tTableOrIndex TableIndexName\n\t// Each row contains an array with store ids and values for the columns in the\n\t// PK or index (or a prefix of the columns).\n\t// See docs/RFCS/sql_split_syntax.md.\n\tRows            *Select\n\tSubjectReplicas RelocateSubject\n}\n```\nRelocate represents an \\`ALTER TABLE/INDEX .. EXPERIMENTAL\\_RELOCATE ..\\` statement.\n\n```go\nfunc (node *Relocate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Relocate) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *Relocate) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Relocate) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Relocate) String() string\n```\n\n```go\ntype RelocateRange struct {\n\tRows            *Select\n\tToStoreID       Expr\n\tFromStoreID     Expr\n\tSubjectReplicas RelocateSubject\n}\n```\nRelocateRange represents an \\`ALTER RANGE .. RELOCATE ..\\` statement.\n\n```go\nfunc (n *RelocateRange) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RelocateRange) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *RelocateRange) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RelocateRange) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *RelocateRange) String() string\n```\n\n```go\ntype RelocateSubject int8\n```\nRelocateSubject indicates what replicas of a range should be relocated.\n\n```go\nconst (\n\t// RelocateLease indicates that leases should be relocated.\n\tRelocateLease RelocateSubject = iota\n\t// RelocateVoters indicates what voter replicas should be relocated.\n\tRelocateVoters\n\t// RelocateNonVoters indicates that non-voter replicas should be relocated.\n\tRelocateNonVoters\n)\n```\n\n```go\nfunc (n *RelocateSubject) Format(ctx *FmtCtx)\n```\nFormat implementsthe NodeFormatter interface.\n\n```go\nfunc (n RelocateSubject) String() string\n```\n\n```go\ntype RenameColumn struct {\n\tTable   TableName\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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RenameColumn) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RenameDatabase) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *RenameDatabase) String() string\n```\n\n```go\ntype RenameIndex struct {\n\tIndex    *TableIndexName\n\tNewName  UnrestrictedName\n\tIfExists bool\n}\n```\nRenameIndex represents a RENAME INDEX statement.\n\n```go\nfunc (node *RenameIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RenameIndex) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *RenameIndex) String() string\n```\n\n```go\ntype RenameTable struct {\n\tName           *UnresolvedObjectName\n\tNewName        *UnresolvedObjectName\n\tIfExists       bool\n\tIsView         bool\n\tIsMaterialized bool\n\tIsSequence     bool\n}\n```\nRenameTable represents a RENAME TABLE or RENAME VIEW or RENAME SEQUENCE statement. Whether the user has asked to rename a view or a sequence is indicated by the IsView and IsSequence fields.\n\n```go\nfunc (node *RenameTable) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RenameTable) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *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 (n *RenameTable) String() string\n```\n\n```go\ntype ReparentDatabase struct {\n\tName   Name\n\tParent Name\n}\n```\nReparentDatabase represents a database reparenting as a schema operation.\n\n```go\nfunc (node *ReparentDatabase) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ReparentDatabase) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ReparentDatabase) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ReparentDatabase) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ReparentDatabase) String() string\n```\n\n```go\ntype ReplicationCutoverTime struct {\n\tTimestamp Expr\n\tLatest    bool\n}\n```\nReplicationCutoverTime represent the user-specified cutover time\n\n```go\ntype RequiredTableKind byte\n```\nRequiredTableKind controls what kind of TableDescriptor backed object is requested to be resolved.\n\n```go\nconst (\n\tResolveAnyTableKind RequiredTableKind = iota\n\tResolveRequireTableDesc\n\tResolveRequireViewDesc\n\tResolveRequireTableOrViewDesc\n\tResolveRequireSequenceDesc\n)\n```\nRequiredTableKind options have descriptive names.\n\n```go\nfunc (r RequiredTableKind) String() string\n```\n\n```go\ntype ResolvableFunctionReference struct {\n\t// ReferenceByName keeps track of the name that was used to resolve the\n\t// function, if one was used. This is used for metadata dependency tracking.\n\tReferenceByName *UnresolvedObjectName\n\tFunctionReference\n}\n```\nResolvableFunctionReference implements the editable reference call of a FuncExpr.\n\n```go\nfunc WrapFunction(n string) ResolvableFunctionReference\n```\nWrapFunction creates a new ResolvableFunctionReference holding a pre-resolved function from a built-in function name. Helper for grammar rules and execbuilder.\n\nTODO(Chengxiong): get rid of FunctionDefinition entirely and use ResolvedFunctionDefinition instead.\n\n```go\nfunc (ref *ResolvableFunctionReference) Resolve(\n\tctx context.Context, path SearchPath, resolver FunctionReferenceResolver,\n) (*ResolvedFunctionDefinition, error)\n```\nResolve converts a ResolvableFunctionReference into a \\*FunctionDefinition. If the reference has already been resolved, it simply returns the definition. If a FunctionReferenceResolver is provided, it will be used to resolve the function definition. Otherwise, the default resolution of UnresolvedName.ResolveFunction is used.\n\n```go\ntype ResolvableTypeReference interface {\n\tSQLString() string\n}\n```\nResolvableTypeReference represents a type that is possibly unknown until type-checking/type name resolution is performed. N.B. ResolvableTypeReferences in expressions must be formatted with FormatTypeReference instead of SQLString.\n\n```go\ntype ResolvedFunctionDefinition struct {\n\t// Name is the name of the function and not the name of the schema. And, it's\n\t// not qualified.\n\tName string\n\n\t// Overloads is the set of overloads for this resolved function. It can be\n\t// empty in which case UnsupportedWithIssue is set.\n\tOverloads []QualifiedOverload\n\n\t// UnsupportedWithIssue, if non-zero, indicates the built-in is not really\n\t// supported and provides the issue number to link.\n\tUnsupportedWithIssue uint\n}\n```\nResolvedFunctionDefinition is similar to FunctionDefinition but with all the overloads qualified with schema name.\n\n```go\nfunc GetBuiltinFuncDefinition(\n\tfName RoutineName, searchPath SearchPath,\n) (*ResolvedFunctionDefinition, error)\n```\nGetBuiltinFuncDefinition search for a builtin function given a function name and a search path. If function name is prefixed, only the builtin functions in the specific schema are searched. Otherwise, all schemas on the given searchPath are searched. A nil is returned if no function is found. It's caller's choice to error out if function not found.\n\nIn theory, this function returns an error only when the search path iterator errors which won't happen since the iterating function never errors out. But error is still checked and return from the function signature just in case we change the iterating function in the future.\n\n```go\nfunc GetBuiltinFuncDefinitionOrFail(\n\tfName RoutineName, searchPath SearchPath,\n) (*ResolvedFunctionDefinition, error)\n```\nGetBuiltinFuncDefinitionOrFail is similar to GetBuiltinFuncDefinition but returns an error if function is not found.\n\n```go\nfunc GetBuiltinFunctionByOIDOrFail(oid oid.Oid) (*ResolvedFunctionDefinition, error)\n```\nGetBuiltinFunctionByOIDOrFail retrieves a builtin function by OID.\n\n```go\nfunc QualifyBuiltinFunctionDefinition(\n\tdef *FunctionDefinition, schema string,\n) *ResolvedFunctionDefinition\n```\nQualifyBuiltinFunctionDefinition qualified all overloads in a function definition with a schema name. Note that this function can only be used for builtin function.\n\nIt must be called during the initialization of the process.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\nResolvedFunctionDefinitions can be builtin or user-defined, so we must respect formatting flags.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) GetClass() (FunctionClass, error)\n```\nGetClass returns function class by checking each overload's Class and returns the homogeneous Class value if all overloads are the same Class. Ambiguous error is returned if there is any overload with different Class.\n\nTODO(chengxiong,mgartner): make sure that, at places of the use cases of this method, function is resolved to one overload, so that we can get rid of this function and similar methods below.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) GetHasSequenceArguments() (bool, error)\n```\nGetHasSequenceArguments returns function's HasSequenceArguments flag by checking each overload's HasSequenceArguments flag. Ambiguous error is returned if there is any overload has a different flag.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) GetReturnLabel() ([]string, error)\n```\nGetReturnLabel returns function ReturnLabel by checking each overload and returns a ReturnLabel if all overloads have a ReturnLabel of the same length. Ambiguous error is returned if there is any overload has ReturnLabel of a different length. This is good enough since we don't create UDF with ReturnLabel.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) MakeUnsupportedError() error\n```\nMakeUnsupportedError returns an implemented error if UnsupportedWithIssue is non-zero.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) MatchOverload(\n\tctx context.Context,\n\ttypeRes TypeReferenceResolver,\n\troutineObj *RoutineObj,\n\tsearchPath SearchPath,\n\troutineType RoutineType,\n\tinDropContext bool,\n\ttryDefaultExprs bool,\n) (QualifiedOverload, error)\n```\nMatchOverload searches an overload with the given signature. The overload from the most significant schema is returned. If routineObj.Params==nil, an error is returned if the function name is not unique in the most significant schema. If routineObj.Params is not nil, an error with ErrRoutineUndefined cause is returned if not matches found. Overloads that don't match the types in routineType are ignored.\n\nIf tryDefaultExprs is true, then routineObj.Params might specify the prefix of the input types with remaining input types provided by the overload's DEFAULT expressions.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) MergeWith(\n\tanother *ResolvedFunctionDefinition, path SearchPath,\n) (*ResolvedFunctionDefinition, error)\n```\nMergeWith is used to merge two UDF definitions with same name.\n\n```go\nfunc (fd *ResolvedFunctionDefinition) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype Restore struct {\n\tTargets            BackupTargetList\n\tDescriptorCoverage DescriptorCoverage\n\n\t// From contains the URIs for the backup we seek to restore.\n\t//   - len(From) \u003e 1 implies the backups are locality aware\n\t//   - From[0] must be the default locality.\n\tFrom    StringOrPlaceholderOptList\n\tAsOf    AsOfClause\n\tOptions RestoreOptions\n\n\t// Subdir may be set by the parser when the SQL query is of the form `RESTORE\n\t// ... FROM 'subdir' IN 'from'...`. Alternatively, restore_planning.go will set\n\t// it for the query `RESTORE ... FROM LATEST IN 'from'...`\n\tSubdir Expr\n}\n```\nRestore represents a RESTORE statement.\n\n```go\nfunc (node *Restore) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Restore) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Restore) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Restore) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Restore) String() string\n```\n\n```go\ntype RestoreOptions struct {\n\tEncryptionPassphrase             Expr\n\tDecryptionKMSURI                 StringOrPlaceholderOptList\n\tIntoDB                           Expr\n\tSkipMissingFKs                   bool\n\tSkipMissingSequences             bool\n\tSkipMissingSequenceOwners        bool\n\tSkipMissingViews                 bool\n\tSkipMissingUDFs                  bool\n\tDetached                         bool\n\tSkipLocalitiesCheck              bool\n\tNewDBName                        Expr\n\tIncrementalStorage               StringOrPlaceholderOptList\n\tAsTenant                         Expr\n\tForceTenantID                    Expr\n\tSchemaOnly                       bool\n\tVerifyData                       bool\n\tUnsafeRestoreIncompatibleVersion bool\n\tExecutionLocality                Expr\n\tExperimentalOnline               bool\n\tExperimentalCopy                 bool\n\tRemoveRegions                    bool\n}\n```\nRestoreOptions describes options for the RESTORE execution.\n\n```go\nfunc (o *RestoreOptions) CombineWith(other *RestoreOptions) error\n```\nCombineWith merges other backup options into this backup options struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (o *RestoreOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o RestoreOptions) IsDefault() bool\n```\nIsDefault returns true if this backup options struct has default value.\n\n```go\nfunc (opts *RestoreOptions) OnlineImpl() bool\n```\n\n```go\ntype ReturnTyper func(args []TypedExpr) *types.T\n```\nReturnTyper defines the type-level function in which a builtin function's return type is determined. ReturnTypers should make sure to return unknownReturnType when necessary.\n\n```go\nfunc ArrayOfFirstNonNullReturnType() ReturnTyper\n```\nArrayOfFirstNonNullReturnType returns an array type from the first non-null type in the argument list.\n\n```go\nfunc FirstNonNullReturnType() ReturnTyper\n```\nFirstNonNullReturnType returns the type of the first non-null argument, or types.Unknown if all arguments are null. There must be at least one argument, or else FirstNonNullReturnType returns UnknownReturnType. This method is used with HomogeneousType functions, in which all arguments have been checked to have the same type (or be null).\n\n```go\nfunc FixedReturnType(typ *types.T) ReturnTyper\n```\nFixedReturnType functions simply return a fixed type, independent of argument types.\n\n```go\nfunc IdentityReturnType(idx int) ReturnTyper\n```\nIdentityReturnType creates a returnType that is a projection of the idx'th argument type.\n\n```go\ntype ReturningClause interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nReturningClause represents the returning clause on a statement.\n\n```go\ntype ReturningExprs SelectExprs\n```\nReturningExprs represents RETURNING expressions.\n\n```go\nfunc (r *ReturningExprs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ReturningNothing struct{}\n```\nReturningNothing represents RETURNING NOTHING.\n\n```go\nfunc (*ReturningNothing) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Revoke struct {\n\tPrivileges     privilege.List\n\tTargets        GrantTargetList\n\tGrantees       RoleSpecList\n\tGrantOptionFor bool\n}\n```\nRevoke represents a REVOKE statement. PrivilegeList and TargetList are defined in grant.go\n\n```go\nfunc (node *Revoke) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Revoke) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Revoke) String() string\n```\n\n```go\ntype RevokeRole struct {\n\tRoles       NameList\n\tMembers     RoleSpecList\n\tAdminOption bool\n}\n```\nRevokeRole represents a REVOKE \\\u003crole\u003e statement.\n\n```go\nfunc (node *RevokeRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RevokeRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*RevokeRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RevokeRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *RevokeRole) String() string\n```\n\n```go\ntype RoleSpec struct {\n\tRoleSpecType RoleSpecType\n\tName         string\n}\n```\nRoleSpec represents a role. Name should only be populated if RoleSpecType is RoleName.\n\n```go\nfunc MakeRoleSpecWithRoleName(name string) RoleSpec\n```\nMakeRoleSpecWithRoleName creates a RoleSpec using a RoleName.\n\n```go\nfunc (r *RoleSpec) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (r RoleSpec) Undefined() bool\n```\nUndefined returns if RoleSpec is undefined.\n\n```go\ntype RoleSpecList []RoleSpec\n```\nRoleSpecList is a list of RoleSpec.\n\n```go\nfunc (l *RoleSpecList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoleSpecType int\n```\nRoleSpecType represents whether the RoleSpec is represented by string name or if the spec is CURRENT\\_USER or SESSION\\_USER.\n\n```go\nconst (\n\t// RoleName represents if a RoleSpec is defined using an IDENT or\n\t// unreserved_keyword in the grammar.\n\tRoleName RoleSpecType = iota\n\t// CurrentUser represents if a RoleSpec is defined using CURRENT_USER.\n\tCurrentUser\n\t// SessionUser represents if a RoleSpec is defined using SESSION_USER.\n\tSessionUser\n)\n```\n\n```go\nfunc (r RoleSpecType) String() string\n```\n\n```go\ntype RollbackPrepared struct {\n\tTransaction *StrVal\n}\n```\nRollbackPrepared represents a ROLLBACK PREPARED \\\u003ctransaction-id\u003e statement, used for the second phase of a two-phase rollback.\n\n```go\nfunc (node *RollbackPrepared) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RollbackPrepared) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*RollbackPrepared) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RollbackPrepared) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *RollbackPrepared) String() string\n```\n\n```go\ntype RollbackToSavepoint struct {\n\tSavepoint Name\n}\n```\nRollbackToSavepoint represents a ROLLBACK TO SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (node *RollbackToSavepoint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RollbackToSavepoint) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *RollbackToSavepoint) String() string\n```\n\n```go\ntype RollbackTransaction struct{}\n```\nRollbackTransaction represents a ROLLBACK statement.\n\n```go\nfunc (node *RollbackTransaction) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RollbackTransaction) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *RollbackTransaction) String() string\n```\n\n```go\ntype RoutineBody struct {\n\t// Stmts is populated during parsing. Unlike BodyStatements, we don't need\n\t// to create separate Annotations for each statement.\n\tStmts Statements\n}\n```\nRoutineBody represent a list of statements in a UDF body.\n\n```go\ntype RoutineBodyStr string\n```\nRoutineBodyStr is a string containing all statements in a UDF body.\n\n```go\nfunc AnalyzeDoBlockOptions(options DoBlockOptions) (RoutineBodyStr, error)\n```\nAnalyzeDoBlockOptions checks the list of DO block options for validity, and returns the code string.\n\n```go\nfunc (node RoutineBodyStr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineExceptionHandler struct {\n\t// Codes is a list of pgcode strings used to match exceptions. Note that as a\n\t// special case, the code may be \"OTHERS\", which matches most error codes.\n\tCodes []pgcode.Code\n\n\t// Actions contains a routine to handle each error code.\n\tActions []*RoutineExpr\n}\n```\nRoutineExceptionHandler encapsulates the information needed to match and handle errors for the exception block of a routine defined with PLpgSQL.\n\n```go\ntype RoutineExecFactory interface{}\n```\nRoutineExecFactory is a factory used to build optimizer expressions into execution plans for statements within a RoutineExpr. It currently maps to exec.Factory. We use the empty interface here rather than exec.Factory to avoid import cycles.\n\n```go\ntype RoutineExpr struct {\n\t// Name is a string name that describes the RoutineExpr, e.g., the name of\n\t// the UDF that the RoutineExpr is built from.\n\tName string\n\n\t// Args contains the argument expressions to the routine.\n\tArgs TypedExprs\n\n\t// ForEachPlan generates a plan for each statement in the routine.\n\tForEachPlan RoutinePlanGenerator\n\n\t// Typ is the type of the routine's result.\n\tTyp *types.T\n\n\t// EnableStepping configures step-wise execution for the statements in the\n\t// routine. When true, statements within the routine will see mutations made\n\t// by the statement invoking the routine. They will also see changes made by\n\t// previous statements in the routine. When false, statements within the\n\t// routine will see a snapshot of the data as of the start of the statement\n\t// invoking the routine.\n\tEnableStepping bool\n\n\t// CachedResult stores the datum that the routine evaluates to, if the\n\t// routine is nullary (i.e., it has zero arguments) and stepping is\n\t// disabled. It is populated during the first execution of the routine.\n\t// Subsequent invocations of the routine return Result directly, rather than\n\t// being executed.\n\t//\n\t// The cache is never cleared - it lives for the entire lifetime of the\n\t// routine. Therefore, to \"invalidate\" the cache, a new routine must be\n\t// created. For example, consider:\n\t//\n\t//   CREATE TABLE t (i INT);\n\t//   CREATE FUNCTION f() RETURNS INT VOLATILE LANGUAGE SQL AS $$\n\t//     SELECT i FROM (VALUES (1), (2)) v(i) WHERE i = (SELECT max(i) FROM t)\n\t//   $$;\n\t//   SELECT f() FROM (VALUES (3), (4));\n\t//\n\t// The optimizer query plan for the SELECT contains two expressions that are\n\t// built as routines, the UDF and the subquery within it. Each invocation of\n\t// the UDF's routine will re-plan the body of the function, creating a new\n\t// routine for the subquery. This effectively \"invalidates\" the cached\n\t// result in the subquery routines each time the UDF is invoked. Within a\n\t// single invocation of the UDF, however, the subquery will only be executed\n\t// once and the cached result will be returned if the subquery is evaluated\n\t// multiple times (e.g., for each value of i in v).\n\tCachedResult Datum\n\n\t// CalledOnNullInput is true if the function should be called when any of\n\t// its inputs are NULL. If false, the function will not be evaluated in the\n\t// presence of null inputs, and will instead evaluate directly to NULL.\n\t//\n\t// NOTE: This boolean only affects evaluation of Routines within project-set\n\t// operators. This can apply to scalar routines if they are used as data\n\t// source (e.g. SELECT * FROM scalar_udf()), and always applies to\n\t// set-returning routines.\n\t// Strict non-set-returning routines are not invoked when their arguments\n\t// are NULL because optbuilder wraps them in a CASE expressions.\n\tCalledOnNullInput bool\n\n\t// MultiColOutput is true if the function may return multiple columns.\n\tMultiColOutput bool\n\n\t// Generator is true if the function may output a set of rows.\n\tGenerator bool\n\n\t// DiscardLastStmtResult is true if the routine should not add the output of\n\t// the last body statement into the result set. This is used for set-returning\n\t// PL/pgSQL functions, for which sub-routines will add to the result set\n\t// during execution (implementing RETURN NEXT and RETURN QUERY).\n\tDiscardLastStmtResult bool\n\n\t// TailCall is true if the routine is in a tail-call position in a parent\n\t// routine. This means that once execution reaches this routine, the parent\n\t// routine will return the result of evaluating this routine with no further\n\t// changes. For routines in a tail-call position we implement an optimization\n\t// to avoid nesting execution. This is necessary for performant PLpgSQL loops.\n\tTailCall bool\n\n\t// Procedure is true if the routine is a procedure being invoked by CALL.\n\tProcedure bool\n\n\t// TriggerFunc is true if this routine is a trigger function. Note that it is\n\t// only set for the outermost routine, and not any sub-routines used to\n\t// implement the PL/pgSQL body.\n\tTriggerFunc bool\n\n\t// BlockStart is true if this routine marks the start of a PL/pgSQL block with\n\t// an exception handler. It determines when to initialize the state shared\n\t// between sub-routines for the block.\n\tBlockStart bool\n\n\t// BlockState holds the information needed to coordinate error-handling\n\t// between the sub-routines that make up a PLpgSQL exception block.\n\tBlockState *BlockState\n\n\t// CursorDeclaration contains the information needed to open a SQL cursor with\n\t// the result of the *first* body statement. It may be unset.\n\tCursorDeclaration *RoutineOpenCursor\n\n\t// FirstStmtResultWriter is the optional result writer that will store the\n\t// result of the *first* body statement. It may be unset. Only one of this or\n\t// CursorDeclaration may be set.\n\tFirstStmtResultWriter RoutineResultWriter\n}\n```\nRoutineExpr represents sequential execution of multiple statements. For example, it is used to represent execution of statements in the body of a user-defined function. It is only created by execbuilder - it is never constructed during parsing.\n\n```go\nfunc NewTypedRoutineExpr(\n\tname string,\n\targs TypedExprs,\n\tgen RoutinePlanGenerator,\n\ttyp *types.T,\n\tenableStepping bool,\n\tcalledOnNullInput bool,\n\tmultiColOutput bool,\n\tgenerator bool,\n\tdiscardLastStmtResult bool,\n\ttailCall bool,\n\tprocedure bool,\n\ttriggerFunc bool,\n\tblockStart bool,\n\tblockState *BlockState,\n\tcursorDeclaration *RoutineOpenCursor,\n\tfirstStmtResultWriter RoutineResultWriter,\n) *RoutineExpr\n```\nNewTypedRoutineExpr returns a new RoutineExpr that is well-typed.\n\n```go\nfunc (node *RoutineExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *RoutineExpr) Format(ctx *FmtCtx)\n```\nFormat is part of the Expr interface.\n\n```go\nfunc (node *RoutineExpr) ResolvedType() *types.T\n```\nResolvedType is part of the TypedExpr interface.\n\n```go\nfunc (node *RoutineExpr) String() string\n```\n\n```go\nfunc (node *RoutineExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck is part of the Expr interface.\n\n```go\nfunc (node *RoutineExpr) Walk(v Visitor) Expr\n```\nWalk is part of the Expr interface.\n\n```go\ntype RoutineLanguage string\n```\nRoutineLanguage indicates the language of the statements in the routine body.\n\n```go\nconst (\n\t// RoutineLangUnknown represents an unknown language.\n\tRoutineLangUnknown RoutineLanguage = \"unknown\"\n\t// RoutineLangSQL represents SQL language.\n\tRoutineLangSQL RoutineLanguage = \"SQL\"\n\t// RoutineLangPLpgSQL represents the PL/pgSQL procedural language.\n\tRoutineLangPLpgSQL RoutineLanguage = \"plpgsql\"\n\t// RoutineLangC represents the C language.\n\tRoutineLangC RoutineLanguage = \"C\"\n)\n```\n\n```go\nfunc AsRoutineLanguage(lang string) (RoutineLanguage, error)\n```\nAsRoutineLanguage converts a string to a RoutineLanguage if applicable. No error is returned if string does not represent a valid UDF language; unknown languages result in an error later.\n\n```go\nfunc (node RoutineLanguage) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineLeakproof bool\n```\nRoutineLeakproof indicates whether a function is leakproof or not. The default is NOT LEAKPROOF if no leakproof option is provided. LEAKPROOF can only be used with the IMMUTABLE volatility because we currently conflated LEAKPROOF as a volatility equal to IMMUTABLE+LEAKPROOF. Postgres allows STABLE+LEAKPROOF functions.\n\n```go\nfunc (node RoutineLeakproof) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineName struct {\n\t// contains filtered or unexported fields\n}\n```\nRoutineName represent a function name in a UDF relevant statement, either DDL or DML statement. Similar to TableName, it is constructed for incoming SQL queries from an UnresolvedObjectName.\n\n```go\nfunc MakeQualifiedRoutineName(db string, sc string, fn string) RoutineName\n```\nMakeQualifiedRoutineName constructs a RoutineName with the given db and schema name as prefix.\n\n```go\nfunc MakeRoutineNameFromPrefix(prefix ObjectNamePrefix, object Name) RoutineName\n```\nMakeRoutineNameFromPrefix returns a RoutineName with the given prefix and function name.\n\n```go\nfunc (f *RoutineName) FQString() string\n```\nFQString renders the function name in full, not omitting the prefix schema and catalog names. Suitable for logging, etc.\n\n```go\nfunc (f *RoutineName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o *RoutineName) Object() string\n```\n\n```go\nfunc (f *RoutineName) String() string\n```\n\n```go\nfunc (o *RoutineName) ToUnresolvedObjectName() *UnresolvedObjectName\n```\nToUnresolvedObjectName converts the type name to an unresolved object name. Schema and catalog are included if indicated by the ExplicitSchema and ExplicitCatalog flags.\n\n```go\ntype RoutineNullInputBehavior int\n```\nRoutineNullInputBehavior represent the UDF property on null parameters.\n\n```go\nconst (\n\t// RoutineCalledOnNullInput indicates that the routine will be given the\n\t// chance to execute when presented with NULL input. This is the default if\n\t// no null input behavior is specified.\n\tRoutineCalledOnNullInput RoutineNullInputBehavior = iota\n\t// RoutineReturnsNullOnNullInput indicates that the routine will result in\n\t// NULL given any NULL parameter.\n\tRoutineReturnsNullOnNullInput\n\t// RoutineStrict is the same as RoutineReturnsNullOnNullInput\n\tRoutineStrict\n)\n```\n\n```go\nfunc (node RoutineNullInputBehavior) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineObj struct {\n\tFuncName RoutineName\n\tParams   RoutineParams\n}\n```\nRoutineObj represents a routine (function or procedure) object in DROP, GRANT, and REVOKE statements.\n\n```go\nfunc (node *RoutineObj) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineObjs []RoutineObj\n```\nRoutineObjs is a slice of RoutineObj.\n\n```go\nfunc (node RoutineObjs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineOpenCursor struct {\n\t// NameArgIdx is the index of the routine argument that contains the name of\n\t// the cursor that will be created.\n\tNameArgIdx int\n\n\t// Scroll is the scroll option for the cursor, if one was specified. The other\n\t// cursor options are not valid in PLpgSQL.\n\tScroll CursorScrollOption\n\n\t// CursorSQL is a formatted string used to associate the original SQL\n\t// statement with the cursor.\n\tCursorSQL string\n}\n```\nRoutineOpenCursor stores the information needed to correctly open a cursor with the output of a routine.\n\n```go\ntype RoutineOption interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nRoutineOption is an interface representing UDF properties.\n\n```go\ntype RoutineOptions []RoutineOption\n```\nRoutineOptions represent a list of routine options.\n\n```go\ntype RoutineParam struct {\n\tName       Name\n\tType       ResolvableTypeReference\n\tClass      RoutineParamClass\n\tDefaultVal Expr\n}\n```\nRoutineParam represents a parameter in a UDF signature.\n\n```go\nfunc (node *RoutineParam) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *RoutineParam) IsInParam() bool\n```\nIsInParam returns true if the parameter is an input parameter (i.e. either IN or INOUT).\n\n```go\nfunc (node *RoutineParam) IsOutParam() bool\n```\nIsOutParam returns true if the parameter is an output parameter (i.e. either OUT or INOUT).\n\n```go\ntype RoutineParamClass int\n```\nRoutineParamClass indicates what type of argument an arg is.\n\n```go\nconst (\n\t// RoutineParamDefault indicates that RoutineParamClass was unspecified\n\t// (in almost all cases it is equivalent to RoutineParamIn).\n\tRoutineParamDefault RoutineParamClass = iota\n\t// RoutineParamIn args can only be used as input.\n\tRoutineParamIn\n\t// RoutineParamOut args can only be used as output.\n\tRoutineParamOut\n\t// RoutineParamInOut args can be used as both input and output.\n\tRoutineParamInOut\n\t// RoutineParamVariadic args are variadic.\n\tRoutineParamVariadic\n)\n```\n\n```go\ntype RoutineParams []RoutineParam\n```\nRoutineParams represents a list of RoutineParam.\n\n```go\nfunc (node RoutineParams) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutinePlan interface{}\n```\nRoutinePlan represents a plan for a statement in a routine. It currently maps to exec.Plan. We use the empty interface here rather than exec.Plan to avoid import cycles.\n\n```go\ntype RoutinePlanGeneratedFunc func(plan RoutinePlan, stmtForDistSQLDiagram string, isFinalPlan bool) error\n```\nRoutinePlanGeneratedFunc is the function type that is called for each plan enumerated by a RoutinePlanGenerator. - stmtForDistSQLDiagram, if set, will be used when generating DistSQL diagram to specify the SQL stmt corresponding to the plan. - isFinalPlan is true if no more plans will be generated after the current plan.\n\n```go\ntype RoutinePlanGenerator func(\n\t_ context.Context,\n\t_ RoutineExecFactory,\n\t_ RoutineResultWriter,\n\targs Datums,\n\tfn RoutinePlanGeneratedFunc,\n) error\n```\nRoutinePlanGenerator generates a plan for the execution of each statement within a routine. The given RoutinePlanGeneratedFunc is called for each plan generated.\n\nA RoutinePlanGenerator must return an error if the RoutinePlanGeneratedFunc returns an error.\n\n```go\ntype RoutineResultWriter interface{}\n```\nRoutineResultWriter maps to \\*sql.RowResultWriter. It is used for planning PL/pgSQL set-generating functions, which need to be able to write to the result set at arbitrary points during execution. We use the empty interface here rather than \\*sql.RowResultWriter to avoid import cycles.\n\n```go\ntype RoutineReturn struct {\n\tReturnVal Expr\n}\n```\nRoutineReturn represent a RETURN statement in a UDF body.\n\n```go\nfunc (node *RoutineReturn) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*RoutineReturn) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*RoutineReturn) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*RoutineReturn) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *RoutineReturn) String() string\n```\n\n```go\ntype RoutineReturnType struct {\n\tType  ResolvableTypeReference\n\tSetOf bool\n}\n```\nRoutineReturnType represent the return type of UDF.\n\n```go\ntype RoutineSecurity int\n```\nRoutineSecurity indicates the mode of security that the routine will be executed with.\n\n```go\nconst (\n\t// RoutineInvoker indicates that the routine is run with the privileges of\n\t// the user invoking it. This is the default security mode if none is\n\t// provided.\n\tRoutineInvoker RoutineSecurity = iota\n\t// RoutineDefiner indicates that the routine is run with the privileges of\n\t// the user who defined it.\n\tRoutineDefiner\n)\n```\n\n```go\nfunc (node RoutineSecurity) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RoutineType uint8\n```\nRoutineType specifies the type of routine represented by an overload.\n\n```go\nconst (\n\t// BuiltinRoutine is a builtin function.\n\tBuiltinRoutine RoutineType = 1 \u003c\u003c iota\n\t// UDFRoutine is a user-defined function.\n\tUDFRoutine\n\t// ProcedureRoutine is a user-defined procedure.\n\tProcedureRoutine\n)\n```\n\n```go\nfunc (t RoutineType) String() string\n```\nString returns the string representation of the routine type.\n\n```go\ntype RoutineVolatility int\n```\nRoutineVolatility represent UDF volatility property.\n\n```go\nconst (\n\t// RoutineVolatile represents volatility.Volatile. This is the default\n\t// volatility if none is provided.\n\tRoutineVolatile RoutineVolatility = iota\n\t// RoutineImmutable represents volatility.Immutable.\n\tRoutineImmutable\n\t// RoutineStable represents volatility.Stable.\n\tRoutineStable\n)\n```\n\n```go\nfunc GetRoutineVolatility(options RoutineOptions) RoutineVolatility\n```\nGetRoutineVolatility tries to find a function volatility from the given list of function options. If there is no volatility found, RoutineVolatile is returned as the default.\n\n```go\nfunc (node RoutineVolatility) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype RowsFromExpr struct {\n\tItems Exprs\n}\n```\nRowsFromExpr represents a ROWS FROM(...) expression.\n\n```go\nfunc (node *RowsFromExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (expr *RowsFromExpr) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype SQLFnOverload interface {\n\tSQLFn()\n}\n```\nSQLFnOverload is an opaque type used to box an eval.SQLFnOverload.\n\n```go\ntype Savepoint struct {\n\tName Name\n}\n```\nSavepoint represents a SAVEPOINT \\\u003cname\u003e statement.\n\n```go\nfunc (node *Savepoint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Savepoint) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Savepoint) String() string\n```\n\n```go\ntype ScalarAncestors byte\n```\nScalarAncestors provides context for the current scalar expression during semantic analysis. Ancestors are temporarily modified by expressions so that their descendent expressions can be analyzed with respect to their ancestors.\n\n```go\nconst (\n\t// FuncExprAncestor is temporarily added to ScalarAncestors while type\n\t// checking the parameters of a function. Used to process\n\t// RejectNestedGenerators properly.\n\tFuncExprAncestor ScalarAncestors = 1 \u003c\u003c iota\n\n\t// WindowFuncAncestor is temporarily added to ScalarAncestors while type\n\t// checking the parameters of a window function in order to reject nested\n\t// window functions.\n\tWindowFuncAncestor\n\n\t// ConditionalAncestor is temporarily added to ScalarAncestors while type\n\t// checking condition expressions CASE, COALESCE, and IF. Used to reject\n\t// set-returning functions within conditional expressions.\n\tConditionalAncestor\n)\n```\n\n```go\nfunc (s ScalarAncestors) Has(other ScalarAncestors) bool\n```\nHas returns true if s has all of the given ancestors.\n\n```go\nfunc (s *ScalarAncestors) PopTo(orig ScalarAncestors)\n```\nPopTo returns s to the given set of ancestors. Use with:\n\n\tdefer semaCtx.Properties.Ancestors.PopTo(semaCtx.Properties.Ancestors)\n\n```go\nfunc (s *ScalarAncestors) Push(other ScalarAncestors)\n```\nPush adds the given ancestor to s.\n\n```go\ntype ScalarProperties struct {\n\t// SeenAggregate is set to true if the expression originally\n\t// contained an aggregation.\n\tSeenAggregate bool\n\n\t// SeenWindowApplication is set to true if the expression originally\n\t// contained a window function.\n\tSeenWindowApplication bool\n\n\t// SeenGenerator is set to true if the expression originally\n\t// contained a SRF.\n\tSeenGenerator bool\n}\n```\nScalarProperties contains the properties of the current scalar expression discovered during semantic analysis. The properties are collected prior to simplification, so some of the properties may not hold anymore by the time semantic analysis completes.\n\n```go\nfunc (sp *ScalarProperties) Clear()\n```\nClear resets the scalar properties to defaults.\n\n```go\ntype Scatter struct {\n\tTableOrIndex TableIndexName\n\t// Optional from and to values for the columns in the PK or index (or a prefix\n\t// of the columns).\n\t// See docs/RFCS/sql_split_syntax.md.\n\tFrom, To Exprs\n}\n```\nScatter represents an \\`ALTER TABLE/INDEX .. SCATTER ..\\` statement.\n\n```go\nfunc (node *Scatter) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Scatter) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Scatter) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Scatter) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Scatter) String() string\n```\n\n```go\ntype ScheduleCommand int\n```\nScheduleCommand determines which type of action to effect on the selected job(s).\n\n```go\nconst (\n\tPauseSchedule ScheduleCommand = iota\n\tResumeSchedule\n\tDropSchedule\n)\n```\nScheduleCommand values\n\n```go\nfunc (c ScheduleCommand) String() string\n```\n\n```go\ntype ScheduleState int\n```\nScheduleState describes what kind of schedules to display\n\n```go\nconst (\n\t// SpecifiedSchedules indicates that show schedules should\n\t// only show subset of schedules.\n\tSpecifiedSchedules ScheduleState = iota\n\n\t// ActiveSchedules indicates that show schedules should\n\t// only show those schedules that are currently active.\n\tActiveSchedules\n\n\t// PausedSchedules indicates that show schedules should\n\t// only show those schedules that are currently paused.\n\tPausedSchedules\n)\n```\n\n```go\nfunc (s ScheduleState) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ScheduledBackup struct {\n\tScheduleLabelSpec LabelSpec\n\tRecurrence        Expr\n\tFullBackup        *FullBackupClause /* nil implies choose default */\n\tTargets           *BackupTargetList /* nil implies tree.AllDescriptors coverage */\n\tTo                StringOrPlaceholderOptList\n\tBackupOptions     BackupOptions\n\tScheduleOptions   KVOptions\n}\n```\nScheduledBackup represents scheduled backup job.\n\n```go\nfunc (node ScheduledBackup) Coverage() DescriptorCoverage\n```\nCoverage return the coverage (all vs requested).\n\n```go\nfunc (node *ScheduledBackup) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ScheduledBackup) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ScheduledBackup) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ScheduledBackup) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ScheduledBackup) String() string\n```\n\n```go\ntype ScheduledChangefeed struct {\n\t*CreateChangefeed\n\tScheduleLabelSpec LabelSpec\n\tRecurrence        Expr\n\tScheduleOptions   KVOptions\n}\n```\nScheduledChangefeed represents scheduled changefeed job.\n\n```go\nfunc (node *ScheduledChangefeed) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ScheduledChangefeed) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ScheduledChangefeed) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ScheduledChangefeed) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\ntype ScheduledJobExecutorType int\n```\nScheduledJobExecutorType is a type identifying the names of the supported scheduled job executors.\n\n```go\nconst (\n\t// InvalidExecutor is a placeholder for an invalid executor type.\n\tInvalidExecutor ScheduledJobExecutorType = iota\n\n\t// ScheduledBackupExecutor is an executor responsible for\n\t// the execution of the scheduled backups.\n\tScheduledBackupExecutor\n\n\t// ScheduledSQLStatsCompactionExecutor is an executor responsible for the\n\t// execution of the scheduled SQL Stats compaction.\n\tScheduledSQLStatsCompactionExecutor\n\n\t// ScheduledRowLevelTTLExecutor is an executor responsible for the cleanup\n\t// of rows on row level TTL tables.\n\tScheduledRowLevelTTLExecutor\n\n\t// ScheduledSchemaTelemetryExecutor is an executor responsible for the logging\n\t// of schema telemetry.\n\tScheduledSchemaTelemetryExecutor\n\n\t// ScheduledChangefeedExecutor is an executor responsible for\n\t// the execution of the scheduled changefeeds.\n\tScheduledChangefeedExecutor\n)\n```\n\n```go\nfunc (t ScheduledJobExecutorType) InternalName() string\n```\nInternalName returns an internal executor name. This name can be used to filter matching schedules.\n\n```go\nfunc (t ScheduledJobExecutorType) UserName() string\n```\nUserName returns a user friendly executor name.\n\n```go\ntype SchemaExprContext string\n```\nSchemaExprContext indicates in which schema change context an expression is being used in. For example, DEFAULT VALUE of a column, CHECK CONSTRAINT's expression, etc.\n\n```go\nconst (\n\tAlterColumnTypeUsingExpr        SchemaExprContext = \"ALTER COLUMN TYPE USING EXPRESSION\"\n\tStoredComputedColumnExpr        SchemaExprContext = \"STORED COMPUTED COLUMN\"\n\tVirtualComputedColumnExpr       SchemaExprContext = \"VIRTUAL COMPUTED COLUMN\"\n\tColumnOnUpdateExpr              SchemaExprContext = \"ON UPDATE\"\n\tColumnDefaultExprInAddColumn    SchemaExprContext = \"DEFAULT (in ADD COLUMN)\"\n\tColumnDefaultExprInNewTable     SchemaExprContext = \"DEFAULT (in CREATE TABLE)\"\n\tColumnDefaultExprInNewView      SchemaExprContext = \"DEFAULT (in CREATE VIEW)\"\n\tColumnDefaultExprInSetDefault   SchemaExprContext = \"DEFAULT (in SET DEFAULT)\"\n\tCheckConstraintExpr             SchemaExprContext = \"CHECK\"\n\tUniqueWithoutIndexPredicateExpr SchemaExprContext = \"UNIQUE WITHOUT INDEX PREDICATE\"\n\tIndexPredicateExpr              SchemaExprContext = \"INDEX PREDICATE\"\n\tExpressionIndexElementExpr      SchemaExprContext = \"EXPRESSION INDEX ELEMENT\"\n\tTTLExpirationExpr               SchemaExprContext = \"TTL EXPIRATION EXPRESSION\"\n\tTTLDefaultExpr                  SchemaExprContext = \"TTL DEFAULT\"\n\tTTLUpdateExpr                   SchemaExprContext = \"TTL UPDATE\"\n\tPolicyUsingExpr                 SchemaExprContext = \"POLICY USING\"\n\tPolicyWithCheckExpr             SchemaExprContext = \"POLICY WITH CHECK\"\n)\n```\n\n```go\nfunc ComputedColumnExprContext(isVirtual bool) SchemaExprContext\n```\n\n```go\ntype SchemaFeatureName string\n```\nSchemaFeatureName feature name for a given statement, which can be used to detect via the feature check functions if the schema change is allowed.\n\n```go\nfunc GetSchemaFeatureNameFromStmt(stmt Statement) SchemaFeatureName\n```\nGetSchemaFeatureNameFromStmt takes a statement and converts it to a schema feature name, which can be enabled or disabled via a feature flag.\n\n```go\ntype Scrub struct {\n\tTyp     ScrubType\n\tOptions ScrubOptions\n\t// Table is only set during SCRUB TABLE statements.\n\tTable *UnresolvedObjectName\n\t// Database is only set during SCRUB DATABASE statements.\n\tDatabase Name\n\tAsOf     AsOfClause\n}\n```\nScrub represents a SCRUB statement.\n\n```go\nfunc (n *Scrub) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Scrub) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *Scrub) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Scrub) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Scrub) String() string\n```\n\n```go\ntype ScrubOption interface {\n\tfmt.Stringer\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nScrubOption represents a scrub option.\n\n```go\ntype ScrubOptionConstraint struct {\n\tConstraintNames NameList\n}\n```\nScrubOptionConstraint represents a CONSTRAINT scrub check.\n\n```go\nfunc (n *ScrubOptionConstraint) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *ScrubOptionConstraint) String() string\n```\n\n```go\ntype ScrubOptionIndex struct {\n\tIndexNames NameList\n}\n```\nScrubOptionIndex represents an INDEX scrub check.\n\n```go\nfunc (n *ScrubOptionIndex) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *ScrubOptionIndex) String() string\n```\n\n```go\ntype ScrubOptionPhysical struct{}\n```\nScrubOptionPhysical represents a PHYSICAL scrub check.\n\n```go\nfunc (n *ScrubOptionPhysical) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *ScrubOptionPhysical) String() string\n```\n\n```go\ntype ScrubOptions []ScrubOption\n```\nScrubOptions corresponds to a comma-delimited list of scrub options.\n\n```go\nfunc (n *ScrubOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *ScrubOptions) String() string\n```\n\n```go\ntype ScrubType int\n```\nScrubType describes the SCRUB statement operation.\n\n```go\ntype SearchPath interface {\n\t// NumElements returns the number of elements in the SearchPath.\n\tNumElements() int\n\n\t// GetSchema returns the schema at the ord offset in the SearchPath.\n\t// Note that it will return the empty string if the ordinal is out of range.\n\tGetSchema(ord int) string\n}\n```\nSearchPath encapsulates the ordered list of schemas in the current database to search during name resolution.\n\n```go\nvar EmptySearchPath SearchPath = emptySearchPath{}\n```\nEmptySearchPath is a SearchPath with no members.\n\n```go\ntype Select struct {\n\tWith    *With\n\tSelect  SelectStatement\n\tOrderBy OrderBy\n\tLimit   *Limit\n\tLocking LockingClause\n}\n```\nSelect represents a SelectStatement with an ORDER and/or LIMIT.\n\n```go\nfunc (node *Select) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Select) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Select) String() string\n```\n\n```go\ntype SelectClause struct {\n\tFrom        From\n\tDistinctOn  DistinctOn\n\tExprs       SelectExprs\n\tGroupBy     GroupBy\n\tWindow      Window\n\tHaving      *Where\n\tWhere       *Where\n\tDistinct    bool\n\tTableSelect bool\n}\n```\nSelectClause represents a SELECT statement.\n\n```go\nfunc (node *SelectClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SelectClause) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *SelectClause) String() string\n```\n\n```go\ntype SelectExpr struct {\n\tExpr Expr\n\tAs   UnrestrictedName\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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *SelectExpr) NormalizeTopLevelVarName() error\n```\nNormalizeTopLevelVarName preemptively expands any UnresolvedName at the top level of the expression into a VarName. This is meant to catch stars so that sql.checkRenderStar() can see it prior to other expression transformations.\n\n```go\ntype SelectExprs []SelectExpr\n```\nSelectExprs represents SELECT expressions.\n\n```go\nfunc (node *SelectExprs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype SelectStatement interface {\n\tStatement\n\t// contains filtered or unexported methods\n}\n```\nSelectStatement represents any SELECT statement.\n\n```go\ntype SemaContext struct {\n\t// Annotations augments the AST with extra information.\n\tAnnotations Annotations\n\n\t// Placeholders relates placeholder names to their type and, later, value.\n\tPlaceholders PlaceholderInfo\n\n\t// IVarContainer is used to resolve the types of IndexedVars.\n\tIVarContainer IndexedVarContainer\n\n\t// SearchPath indicates where to search for unqualified function\n\t// names. The path elements must be normalized via Name.Normalize()\n\t// already.\n\tSearchPath SearchPath\n\n\t// TypeResolver manages resolving type names into *types.T's.\n\tTypeResolver TypeReferenceResolver\n\n\t// FunctionResolver manages resolving functions names into\n\t// *FunctionDefinitons.\n\tFunctionResolver FunctionReferenceResolver\n\n\t// NameResolver is used to resolve the fully qualified\n\t// name of a table given its ID.\n\tNameResolver QualifiedNameResolver\n\n\tProperties SemaProperties\n\n\t// DateStyle refers to the DateStyle to parse as.\n\tDateStyle pgdate.DateStyle\n\t// IntervalStyle refers to the IntervalStyle to parse as.\n\tIntervalStyle duration.IntervalStyle\n\n\t// UnsupportedTypeChecker is used to determine whether a builtin data type is\n\t// supported by the current cluster version. It may be unset.\n\tUnsupportedTypeChecker UnsupportedTypeChecker\n\n\t// UsePre_25_2VariadicBuiltins is set to true when we should use the pre-25.2\n\t// variadic builtins behavior.\n\tUsePre_25_2VariadicBuiltins bool\n}\n```\nSemaContext defines the context in which to perform semantic analysis on an expression syntax tree.\n\n```go\nfunc MakeSemaContext(resolver interface{}) SemaContext\n```\nMakeSemaContext initializes a simple SemaContext suitable for \"lightweight\" type checking such as the one performed for default expressions.\n\nNote: if queries with placeholders are going to be used, SemaContext.Placeholders.Init must be called separately.\n\nresolver is optional and can implement any number of TypeReferenceResolver, FunctionReferenceResolver, and QualifiedNameResolver interfaces.\n\n```go\nfunc (sc *SemaContext) GetTypeResolver() TypeReferenceResolver\n```\nGetTypeResolver returns the TypeReferenceResolver.\n\n```go\nfunc (sc *SemaContext) TypeCheckContext() string\n```\nTypeCheckContext returns the semantic analysis context, for use in creating error messages.\n\n```go\ntype SemaProperties struct {\n\n\t// Derived is populated during semantic analysis with properties\n\t// from the expression being analyzed.  The caller is responsible\n\t// for re-initializing this when needed.\n\tDerived ScalarProperties\n\n\t// Ancestors is mutated during semantic analysis to provide contextual\n\t// information for each descendent during traversal of sub-expressions.\n\tAncestors ScalarAncestors\n\n\t// IgnoreUnpreferredOverloads is set to true when \"unpreferred\" overloads\n\t// should not be used during type-checking and overload resolution.\n\tIgnoreUnpreferredOverloads bool\n\n\t// RoutineUseResolvedType is set to true when type-checking for a routine\n\t// should reuse the already resolved type, if any. This is used to handle\n\t// \"re-type-checking\" that occurs for a RECORD-returning routine, for which\n\t// the return type is not known until the routine body is built.\n\tRoutineUseResolvedType bool\n\t// contains filtered or unexported fields\n}\n```\nSemaProperties is a holder for required and derived properties during semantic analysis. It provides scoping semantics via its Restore() method, see below.\n\n```go\nfunc (s *SemaProperties) Context() string\n```\nContext returns the required context string set by Require.\n\n```go\nfunc (s *SemaProperties) IsSet(rejectFlags SemaRejectFlags) bool\n```\nIsSet checks if all of the given rejectFlags are set as a required property.\n\n```go\nfunc (s *SemaProperties) Reject(rejectFlags SemaRejectFlags)\n```\nReject adds all of the given flags to the set of required constraints of s.\n\n```go\nfunc (s *SemaProperties) Require(context string, rejectFlags SemaRejectFlags)\n```\nRequire resets the derived properties and the scalar ancestors, and sets required constraints. It must only be called before starting semantic analysis and during traversal by semantic analysis itself.\n\n```go\nfunc (s *SemaProperties) Restore(orig SemaProperties)\n```\nRestore restores a copy of a SemaProperties. Use with: defer semaCtx.Properties.Restore(semaCtx.Properties)\n\n```go\ntype SemaRejectFlags int\n```\nSemaRejectFlags contains flags to filter out certain kinds of expressions.\n\n```go\nconst (\n\t// RejectAggregates rejects min(), max(), etc.\n\tRejectAggregates SemaRejectFlags = 1 \u003c\u003c iota\n\n\t// RejectNestedAggregates rejects any use of aggregates inside the\n\t// argument list of another function call, which can itself be an aggregate\n\t// (RejectAggregates notwithstanding).\n\tRejectNestedAggregates\n\n\t// RejectNestedWindowFunctions rejects any use of window functions inside the\n\t// argument list of another window function.\n\tRejectNestedWindowFunctions\n\n\t// RejectWindowApplications rejects \"x() over y\", etc.\n\tRejectWindowApplications\n\n\t// RejectGenerators rejects any use of SRFs, e.g \"generate_series()\".\n\tRejectGenerators\n\n\t// RejectNestedGenerators rejects any use of SRFs inside the\n\t// argument list of another function call, which can itself be a SRF\n\t// (RejectGenerators notwithstanding).\n\t// This is used e.g. when processing the calls inside ROWS FROM.\n\tRejectNestedGenerators\n\n\t// RejectStableOperators rejects any stable functions or operators (including\n\t// casts).\n\tRejectStableOperators\n\n\t// RejectVolatileFunctions rejects any volatile functions.\n\tRejectVolatileFunctions\n\n\t// RejectSubqueries rejects subqueries in scalar contexts.\n\tRejectSubqueries\n\n\t// RejectProcedures rejects procedures in scalar contexts.\n\tRejectProcedures\n\n\t// RejectSpecial is used in common places like the LIMIT clause.\n\tRejectSpecial = RejectAggregates |\n\t\tRejectGenerators |\n\t\tRejectWindowApplications |\n\t\tRejectProcedures\n)\n```\nValid values for SemaRejectFlags.\n\n```go\ntype SequenceOption struct {\n\tName string\n\n\t// AsIntegerType specifies default min and max values of a sequence.\n\tAsIntegerType *types.T\n\n\tIntVal *int64\n\n\tOptionalWord bool\n\n\tColumnItemVal *ColumnItem\n}\n```\nSequenceOption represents an option on a CREATE SEQUENCE statement.\n\n```go\ntype SequenceOptions []SequenceOption\n```\nSequenceOptions represents a list of sequence options.\n\n```go\nfunc (node *SequenceOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype SetClusterSetting struct {\n\tName  string\n\tValue Expr\n}\n```\nSetClusterSetting represents a SET CLUSTER SETTING statement.\n\n```go\nfunc (node *SetClusterSetting) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetClusterSetting) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*SetClusterSetting) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetClusterSetting) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetClusterSetting) String() string\n```\n\n```go\ntype SetSessionAuthorizationDefault struct{}\n```\nSetSessionAuthorizationDefault represents a SET SESSION AUTHORIZATION DEFAULT statement. This can be extended (and renamed) if we ever support names in the last position.\n\n```go\nfunc (node *SetSessionAuthorizationDefault) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetSessionAuthorizationDefault) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*SetSessionAuthorizationDefault) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetSessionAuthorizationDefault) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetSessionAuthorizationDefault) String() string\n```\n\n```go\ntype SetSessionCharacteristics struct {\n\tModes TransactionModes\n}\n```\nSetSessionCharacteristics represents a SET SESSION CHARACTERISTICS AS TRANSACTION statement.\n\n```go\nfunc (node *SetSessionCharacteristics) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetSessionCharacteristics) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*SetSessionCharacteristics) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetSessionCharacteristics) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetSessionCharacteristics) String() string\n```\n\n```go\ntype SetTracing struct {\n\tValues Exprs\n}\n```\nSetTracing represents a SET TRACING statement.\n\n```go\nfunc (node *SetTracing) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetTracing) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*SetTracing) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetTracing) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetTracing) String() string\n```\n\n```go\ntype SetTransaction struct {\n\tModes TransactionModes\n}\n```\nSetTransaction represents a SET TRANSACTION statement.\n\n```go\nfunc (node *SetTransaction) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetTransaction) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *SetTransaction) String() string\n```\n\n```go\ntype SetVar struct {\n\tName     string\n\tLocal    bool\n\tValues   Exprs\n\tReset    bool\n\tResetAll bool\n\tSetRow   bool\n}\n```\nSetVar represents a SET or RESET statement.\n\n```go\nfunc (node *SetVar) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetVar) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *SetVar) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetVar) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetVar) String() string\n```\n\n```go\ntype SetZoneConfig struct {\n\tZoneSpecifier\n\tZoneConfigSettings\n}\n```\nSetZoneConfig represents an ALTER DATABASE/TABLE... CONFIGURE ZONE statement.\n\n```go\nfunc (node *SetZoneConfig) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*SetZoneConfig) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*SetZoneConfig) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*SetZoneConfig) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *SetZoneConfig) String() string\n```\n\n```go\ntype ShardedIndexDef struct {\n\tShardBuckets Expr\n}\n```\nShardedIndexDef represents a hash sharded secondary index definition within a CREATE TABLE or CREATE INDEX statement.\n\n```go\nfunc (node *ShardedIndexDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ShardedPrimaryKeyConstraint struct {\n\tSharded       bool\n\tShardBuckets  Expr\n\tStorageParams StorageParams\n}\n```\nShardedPrimaryKeyConstraint represents \\`PRIMARY KEY .. USING HASH..\\` on a column.\n\n```go\ntype ShowBackup struct {\n\tPath         Expr\n\tInCollection StringOrPlaceholderOptList\n\tFrom         bool\n\tDetails      ShowBackupDetails\n\tOptions      ShowBackupOptions\n}\n```\nShowBackup represents a SHOW BACKUP statement.\n\nTODO(msbutler): implement a walkableStmt for ShowBackup.\n\n```go\nfunc (node *ShowBackup) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowBackup) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowBackup) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowBackup) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowBackup) String() string\n```\n\n```go\ntype ShowBackupDetails int\n```\nShowBackupDetails represents the type of details to display for a SHOW BACKUP statement.\n\n```go\nconst (\n\t// BackupDefaultDetails identifies a bare SHOW BACKUP statement.\n\tBackupDefaultDetails ShowBackupDetails = iota\n\t// BackupRangeDetails identifies a SHOW BACKUP RANGES statement.\n\tBackupRangeDetails\n\t// BackupFileDetails identifies a SHOW BACKUP FILES statement.\n\tBackupFileDetails\n\t// BackupSchemaDetails identifies a SHOW BACKUP SCHEMAS statement.\n\tBackupSchemaDetails\n\t// BackupValidateDetails identifies a SHOW BACKUP VALIDATION\n\t// statement.\n\tBackupValidateDetails\n)\n```\n\n```go\ntype ShowBackupOptions struct {\n\tAsJson               bool\n\tCheckFiles           bool\n\tDebugIDs             bool\n\tIncrementalStorage   StringOrPlaceholderOptList\n\tDecryptionKMSURI     StringOrPlaceholderOptList\n\tEncryptionPassphrase Expr\n\tPrivileges           bool\n\tSkipSize             bool\n\n\t// EncryptionInfoDir is a hidden option used when the user wants to run the deprecated\n\t//\n\t// SHOW BACKUP \u003cincremental_dir\u003e\n\t//\n\t// on an encrypted incremental backup will need to pass their full backup's\n\t// directory to the encryption_info_dir parameter because the\n\t// `ENCRYPTION-INFO` file necessary to decode the incremental backup lives in\n\t// the full backup dir.\n\tEncryptionInfoDir Expr\n\n\tCheckConnectionTransferSize Expr\n\tCheckConnectionDuration     Expr\n\tCheckConnectionConcurrency  Expr\n}\n```\n\n```go\nfunc (o *ShowBackupOptions) CombineWith(other *ShowBackupOptions) error\n```\nCombineWith merges other backup options into this backup options struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (o *ShowBackupOptions) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (o ShowBackupOptions) IsDefault() bool\n```\n\n```go\ntype ShowChangefeedJobs struct {\n\t// If non-nil, a select statement that provides the job ids to be shown.\n\tJobs *Select\n}\n```\nShowChangefeedJobs represents a SHOW CHANGEFEED JOBS statement\n\n```go\nfunc (node *ShowChangefeedJobs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowChangefeedJobs) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowChangefeedJobs) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowChangefeedJobs) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowChangefeedJobs) String() string\n```\n\n```go\ntype ShowClusterSetting struct {\n\tName string\n}\n```\nShowClusterSetting represents a SHOW CLUSTER SETTING statement.\n\n```go\nfunc (node *ShowClusterSetting) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowClusterSetting) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowClusterSetting) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowClusterSetting) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowClusterSetting) String() string\n```\n\n```go\ntype ShowClusterSettingList struct {\n\t// All indicates whether to include non-public settings in the output.\n\tAll bool\n}\n```\nShowClusterSettingList represents a SHOW \\[ALL|PUBLIC] CLUSTER SETTINGS statement.\n\n```go\nfunc (node *ShowClusterSettingList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowClusterSettingList) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowClusterSettingList) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowClusterSettingList) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowClusterSettingList) String() string\n```\n\n```go\ntype ShowColumns struct {\n\tTable       *UnresolvedObjectName\n\tWithComment bool\n}\n```\nShowColumns represents a SHOW COLUMNS statement.\n\n```go\nfunc (node *ShowColumns) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowColumns) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ShowColumns) String() string\n```\n\n```go\ntype ShowCommitTimestamp struct{}\n```\nShowCommitTimestamp represents a SHOW COMMIT TIMESTAMP statement.\n\nIf the current session is in an open transaction state, this statement will implicitly commit the underlying kv transaction and return the HLC timestamp at which it committed. The transaction state machine will be left in a state such that only COMMIT or RELEASE cockroach\\_savepoint; COMMIT are acceptable. The statement may also be sent after RELEASE cockroach\\_savepoint; and before COMMIT.\n\nIf the current session is not in an open transaction state, this statement will return the commit timestamp of the previous transaction, assuming there was one.\n\n```go\nfunc (s ShowCommitTimestamp) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (*ShowCommitTimestamp) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCommitTimestamp) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCommitTimestamp) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCommitTimestamp) String() string\n```\n\n```go\ntype ShowCompletions struct {\n\tStatement *StrVal\n\tOffset    *NumVal\n}\n```\nShowCompletions represents a SHOW COMPLETIONS statement.\n\n```go\nfunc (s ShowCompletions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCompletions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCompletions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCompletions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCompletions) String() string\n```\n\n```go\ntype ShowConstraints struct {\n\tTable       *UnresolvedObjectName\n\tWithComment bool\n}\n```\nShowConstraints represents a SHOW CONSTRAINTS statement.\n\n```go\nfunc (node *ShowConstraints) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowConstraints) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowConstraints) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowConstraints) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowConstraints) String() string\n```\n\n```go\ntype ShowCreate struct {\n\tMode   ShowCreateMode\n\tName   *UnresolvedObjectName\n\tFmtOpt ShowCreateFormatOption\n}\n```\nShowCreate represents a SHOW CREATE statement.\n\n```go\nfunc (node *ShowCreate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreate) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreate) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreate) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreate) String() string\n```\n\n```go\ntype ShowCreateAllSchemas struct{}\n```\nShowCreateAllSchemas represents a SHOW CREATE ALL SCHEMAS statement.\n\n```go\nfunc (node *ShowCreateAllSchemas) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateAllSchemas) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreateAllSchemas) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateAllSchemas) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateAllSchemas) String() string\n```\n\n```go\ntype ShowCreateAllTables struct{}\n```\nShowCreateAllTables represents a SHOW CREATE ALL TABLES statement.\n\n```go\nfunc (node *ShowCreateAllTables) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateAllTables) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreateAllTables) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateAllTables) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateAllTables) String() string\n```\n\n```go\ntype ShowCreateAllTypes struct{}\n```\nShowCreateAllTypes represents a SHOW CREATE ALL TYPES statement.\n\n```go\nfunc (node *ShowCreateAllTypes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateAllTypes) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreateAllTypes) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateAllTypes) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateAllTypes) String() string\n```\n\n```go\ntype ShowCreateExternalConnections struct {\n\tConnectionLabel Expr\n}\n```\nShowCreateExternalConnections represents a SHOW CREATE EXTERNAL CONNECTION statement.\n\n```go\nfunc (node *ShowCreateExternalConnections) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateExternalConnections) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreateExternalConnections) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateExternalConnections) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateExternalConnections) String() string\n```\n\n```go\ntype ShowCreateFormatOption int\n```\n\n```go\nconst (\n\tShowCreateFormatOptionNone ShowCreateFormatOption = iota\n\tShowCreateFormatOptionRedactedValues\n\tShowCreateFormatOptionIgnoreFKs\n)\n```\n\n```go\ntype ShowCreateMode int\n```\nShowCreateMode denotes what kind of SHOW CREATE should be used\n\n```go\nconst (\n\t// ShowCreateModeTable represents SHOW CREATE TABLE\n\tShowCreateModeTable ShowCreateMode = iota\n\t// ShowCreateModeView represents SHOW CREATE VIEW\n\tShowCreateModeView\n\t// ShowCreateModeSequence represents SHOW CREATE SEQUENCE\n\tShowCreateModeSequence\n\t// ShowCreateModeDatabase represents SHOW CREATE DATABASE\n\tShowCreateModeDatabase\n\t// ShowCreateModeIndexes represents SHOW CREATE INDEXES FROM\n\tShowCreateModeIndexes\n\t// ShowCreateModeSecondaryIndexes represents SHOW CREATE SECONDARY INDEXES FROM\n\tShowCreateModeSecondaryIndexes\n)\n```\n\n```go\ntype ShowCreateRoutine struct {\n\tName      ResolvableFunctionReference\n\tProcedure bool\n}\n```\nShowCreateRoutine represents a SHOW CREATE FUNCTION or SHOW CREATE PROCEDURE statement.\n\n```go\nfunc (node *ShowCreateRoutine) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateRoutine) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateRoutine) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateRoutine) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateRoutine) String() string\n```\n\n```go\ntype ShowCreateSchedules struct {\n\tScheduleID Expr\n}\n```\nShowCreateSchedules represents a SHOW CREATE SCHEDULE statement.\n\n```go\nfunc (node *ShowCreateSchedules) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateSchedules) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowCreateSchedules) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateSchedules) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateSchedules) String() string\n```\n\n```go\ntype ShowCreateTrigger struct {\n\tName      Name\n\tTableName *UnresolvedObjectName\n}\n```\nShowCreateTrigger represents a SHOW CREATE TRIGGER statement.\n\n```go\nfunc (node *ShowCreateTrigger) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowCreateTrigger) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateTrigger) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowCreateTrigger) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowCreateTrigger) String() string\n```\n\n```go\ntype ShowDatabaseIndexes struct {\n\tDatabase    Name\n\tWithComment bool\n}\n```\nShowDatabaseIndexes represents a SHOW INDEXES FROM DATABASE statement.\n\n```go\nfunc (node *ShowDatabaseIndexes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowDatabaseIndexes) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowDatabaseIndexes) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowDatabaseIndexes) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowDatabaseIndexes) String() string\n```\n\n```go\ntype ShowDatabases struct {\n\tWithComment bool\n}\n```\nShowDatabases represents a SHOW DATABASES statement.\n\n```go\nfunc (node *ShowDatabases) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowDatabases) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ShowDatabases) String() string\n```\n\n```go\ntype ShowDefaultPrivileges struct {\n\tRoles       RoleSpecList\n\tForAllRoles bool\n\tForGrantee  bool\n\t// If Schema is not specified, SHOW DEFAULT PRIVILEGES is being\n\t// run on the current database.\n\tSchema Name\n}\n```\nShowDefaultPrivileges represents a SHOW DEFAULT PRIVILEGES statement.\n\n```go\nfunc (n *ShowDefaultPrivileges) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowDefaultPrivileges) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowDefaultPrivileges) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowDefaultPrivileges) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowDefaultPrivileges) String() string\n```\n\n```go\ntype ShowDefaultSessionVariablesForRole struct {\n\tName   RoleSpec\n\tIsRole bool\n\tAll    bool\n}\n```\nShowDefaultSessionVariablesForRole represents a SHOW DEFAULT SESSION VARIABLES FOR ROLE \\\u003cname\u003e statement.\n\n```go\nfunc (node *ShowDefaultSessionVariablesForRole) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowDefaultSessionVariablesForRole) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowDefaultSessionVariablesForRole) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowDefaultSessionVariablesForRole) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowDefaultSessionVariablesForRole) String() string\n```\n\n```go\ntype ShowEnums struct {\n\tObjectNamePrefix\n}\n```\nShowEnums represents a SHOW ENUMS statement.\n\n```go\nfunc (node *ShowEnums) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowEnums) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowEnums) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowEnums) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowEnums) String() string\n```\n\n```go\ntype ShowExternalConnections struct {\n\tConnectionLabel Expr\n}\n```\nShowExternalConnections represents a SHOW EXTERNAL CONNECTIONS statement.\n\n```go\nfunc (node *ShowExternalConnections) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowExternalConnections) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowExternalConnections) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowExternalConnections) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowExternalConnections) String() string\n```\n\n```go\ntype ShowFingerprintOptions struct {\n\tStartTimestamp      Expr\n\tExcludedUserColumns StringOrPlaceholderOptList\n}\n```\nShowFingerprintOptions describes options for the SHOW EXPERIMENTAL\\_FINGERPINT execution.\n\n```go\nfunc (s *ShowFingerprintOptions) CombineWith(other *ShowFingerprintOptions) error\n```\nCombineWith merges other TenantReplicationOptions into this struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (s *ShowFingerprintOptions) Format(ctx *FmtCtx)\n```\n\n```go\nfunc (s ShowFingerprintOptions) IsDefault() bool\n```\nIsDefault returns true if this backup options struct has default value.\n\n```go\ntype ShowFingerprints struct {\n\tTenantSpec *TenantSpec\n\tTable      *UnresolvedObjectName\n\n\tOptions ShowFingerprintOptions\n}\n```\nShowFingerprints represents a SHOW EXPERIMENTAL\\_FINGERPRINTS statement.\n\n```go\nfunc (node *ShowFingerprints) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowFingerprints) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowFingerprints) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowFingerprints) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowFingerprints) String() string\n```\n\n```go\ntype ShowFullTableScans struct {\n}\n```\nShowFullTableScans represents a SHOW FULL TABLE SCANS statement.\n\n```go\nfunc (node *ShowFullTableScans) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowFullTableScans) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowFullTableScans) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowFullTableScans) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowFullTableScans) String() string\n```\n\n```go\ntype ShowGrants struct {\n\tTargets  *GrantTargetList\n\tGrantees RoleSpecList\n}\n```\nShowGrants represents a SHOW GRANTS statement. GrantTargetList is defined in grant.go.\n\n```go\nfunc (node *ShowGrants) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowGrants) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ShowGrants) String() string\n```\n\n```go\ntype ShowHistogram struct {\n\tHistogramID int64\n}\n```\nShowHistogram represents a SHOW HISTOGRAM statement.\n\n```go\nfunc (node *ShowHistogram) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowHistogram) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowHistogram) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowHistogram) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowHistogram) String() string\n```\n\n```go\ntype ShowIndexes struct {\n\tTable       *UnresolvedObjectName\n\tWithComment bool\n}\n```\nShowIndexes represents a SHOW INDEX statement.\n\n```go\nfunc (node *ShowIndexes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowIndexes) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowIndexes) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowIndexes) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowIndexes) String() string\n```\n\n```go\ntype ShowJobOptions struct {\n\t// ExecutionDetails, if true, will render job specific details about the job's\n\t// execution. These details will provide improved observability into the\n\t// execution of the job.\n\tExecutionDetails bool\n}\n```\nShowJobOptions describes options for the SHOW JOB execution.\n\n```go\nfunc (s *ShowJobOptions) CombineWith(other *ShowJobOptions) error\n```\n\n```go\nfunc (s *ShowJobOptions) Format(ctx *FmtCtx)\n```\n\n```go\ntype ShowJobs struct {\n\t// If non-nil, a select statement that provides the job ids to be shown.\n\tJobs *Select\n\n\t// If Automatic is true, show only automatically-generated jobs such\n\t// as automatic CREATE STATISTICS jobs. If Automatic is false, show\n\t// only non-automatically-generated jobs.\n\tAutomatic bool\n\n\t// Whether to block and wait for completion of all running jobs to be displayed.\n\tBlock bool\n\n\t// If non-nil, only display jobs started by the specified\n\t// schedules.\n\tSchedules *Select\n\n\t// Options contain any options that were specified in the `SHOW JOB` query.\n\tOptions *ShowJobOptions\n}\n```\nShowJobs represents a SHOW JOBS statement\n\n```go\nfunc (node *ShowJobs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowJobs) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowJobs) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowJobs) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowJobs) String() string\n```\n\n```go\ntype ShowLastQueryStatistics struct {\n\tColumns NameList\n}\n```\nShowLastQueryStatistics represents a SHOW LAST QUERY STATS statement.\n\n```go\nfunc (node *ShowLastQueryStatistics) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowLastQueryStatistics) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowLastQueryStatistics) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowLastQueryStatistics) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowLastQueryStatistics) String() string\n```\n\n```go\ntype ShowLogicalReplicationJobs struct {\n\tShowLogicalReplicationJobsOptions\n}\n```\nShowLogicalReplicationJobs represents a SHOW LOGICAL REPLICATION JOBS statement.\n\n```go\nfunc (node *ShowLogicalReplicationJobs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowLogicalReplicationJobs) StatementReturnType() StatementReturnType\n```\n\n```go\nfunc (*ShowLogicalReplicationJobs) StatementTag() string\n```\n\n```go\nfunc (*ShowLogicalReplicationJobs) StatementType() StatementType\n```\n\n```go\nfunc (n *ShowLogicalReplicationJobs) String() string\n```\n\n```go\ntype ShowLogicalReplicationJobsOptions struct {\n\tWithDetails bool\n}\n```\nShowLogicalReplicationJobsOptions represents the WITH clause in SHOW LOGICAL REPLICATION JOBS.\n\n```go\ntype ShowPartitions struct {\n\tIsDB     bool\n\tDatabase Name\n\n\tIsIndex bool\n\tIndex   TableIndexName\n\n\tIsTable bool\n\tTable   *UnresolvedObjectName\n}\n```\nShowPartitions represents a SHOW PARTITIONS statement.\n\n```go\nfunc (node *ShowPartitions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowPartitions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowPartitions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of the statement.\n\n```go\nfunc (*ShowPartitions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowPartitions) String() string\n```\n\n```go\ntype ShowPolicies struct {\n\tTable *UnresolvedObjectName\n}\n```\nShowPolicies represents a SHOW POLICIES statement.\n\n```go\nfunc (node *ShowPolicies) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowPolicies) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowPolicies) StatementTag() string\n```\nStatementTag returns a short string identifying the type of the statement.\n\n```go\nfunc (*ShowPolicies) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowPolicies) String() string\n```\n\n```go\ntype ShowQueries struct {\n\tAll     bool\n\tCluster bool\n}\n```\nShowQueries represents a SHOW STATEMENTS statement.\n\n```go\nfunc (node *ShowQueries) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowQueries) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowQueries) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowQueries) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowQueries) String() string\n```\n\n```go\ntype ShowRangeForRow struct {\n\tTableOrIndex TableIndexName\n\tRow          Exprs\n}\n```\nShowRangeForRow represents a SHOW RANGE FOR ROW statement.\n\n```go\nfunc (node *ShowRangeForRow) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRangeForRow) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowRangeForRow) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRangeForRow) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRangeForRow) String() string\n```\n\n```go\ntype ShowRanges struct {\n\tDatabaseName Name\n\tTableOrIndex TableIndexName\n\tOptions      *ShowRangesOptions\n\tSource       ShowRangesSource\n}\n```\nShowRanges represents a SHOW RANGES statement.\n\n```go\nfunc (node *ShowRanges) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRanges) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowRanges) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRanges) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRanges) String() string\n```\n\n```go\ntype ShowRangesMode int8\n```\nShowRangesMode represents the WITH clause in SHOW RANGES.\n\n```go\nconst (\n\t// UniqueRanges tells to use just 1 row per range in the output.\n\t//\n\t// Note: The UniqueRanges constant must have value 0; otherwise,\n\t// the parsing logic would become incorrect.\n\tUniqueRanges ShowRangesMode = iota\n\t// ExpandTables requests one row per table in the output.\n\tExpandTables\n\t// ExpandIndexes requests one row per index in the output.\n\tExpandIndexes\n)\n```\n\n```go\ntype ShowRangesOptions struct {\n\tDetails bool\n\tExplain bool\n\tKeys    bool\n\tMode    ShowRangesMode\n}\n```\nShowRangesOptions represents the WITH clause in SHOW RANGES.\n\n```go\nfunc (node *ShowRangesOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ShowRangesSource int8\n```\nShowRangesSource represents the source of a SHOW RANGES statement.\n\n```go\nconst (\n\t// SHOW RANGES FROM CURRENT_CATALOG\n\tShowRangesCurrentDatabase ShowRangesSource = iota\n\t// SHOW RANGES FROM DATABASE\n\tShowRangesDatabase\n\t// SHOW RANGES FROM TABLE\n\tShowRangesTable\n\t// SHOW RANGES FROM INDEX\n\tShowRangesIndex\n\t// SHOW CLUSTER RANGES\n\tShowRangesCluster\n)\n```\n\n```go\ntype ShowRegions struct {\n\tShowRegionsFrom ShowRegionsFrom\n\tDatabaseName    Name\n}\n```\nShowRegions represents a SHOW REGIONS statement\n\n```go\nfunc (node *ShowRegions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRegions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowRegions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRegions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRegions) String() string\n```\n\n```go\ntype ShowRegionsFrom int\n```\nShowRegionsFrom denotes what kind of SHOW REGIONS command is being used.\n\n```go\nconst (\n\t// ShowRegionsFromCluster represents SHOW REGIONS FROM CLUSTER.\n\tShowRegionsFromCluster ShowRegionsFrom = iota\n\t// ShowRegionsFromDatabase represents SHOW REGIONS FROM DATABASE.\n\tShowRegionsFromDatabase\n\t// ShowRegionsFromAllDatabases represents SHOW REGIONS FROM ALL DATABASES.\n\tShowRegionsFromAllDatabases\n\t// ShowRegionsFromDefault represents SHOW REGIONS.\n\tShowRegionsFromDefault\n\t// ShowSuperRegionsFromDatabase represents SHOW SUPER REGIONS FROM DATABASE.\n\tShowSuperRegionsFromDatabase\n)\n```\n\n```go\ntype ShowRoleGrants struct {\n\tRoles    RoleSpecList\n\tGrantees RoleSpecList\n}\n```\nShowRoleGrants represents a SHOW GRANTS ON ROLE statement.\n\n```go\nfunc (node *ShowRoleGrants) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRoleGrants) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowRoleGrants) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRoleGrants) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRoleGrants) String() string\n```\n\n```go\ntype ShowRoles struct {\n}\n```\nShowRoles represents a SHOW ROLES statement.\n\n```go\nfunc (node *ShowRoles) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRoles) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowRoles) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRoles) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRoles) String() string\n```\n\n```go\ntype ShowRoutines struct {\n\tObjectNamePrefix\n\tProcedure bool\n}\n```\nShowRoutines represents a SHOW FUNCTIONS or SHOW PROCEDURES statement.\n\n```go\nfunc (node *ShowRoutines) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowRoutines) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (n *ShowRoutines) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowRoutines) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowRoutines) String() string\n```\n\n```go\ntype ShowSavepointStatus struct {\n}\n```\nShowSavepointStatus represents a SHOW SAVEPOINT STATUS statement.\n\n```go\nfunc (node *ShowSavepointStatus) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSavepointStatus) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSavepointStatus) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSavepointStatus) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSavepointStatus) String() string\n```\n\n```go\ntype ShowSchedules struct {\n\tWhichSchedules ScheduleState\n\tExecutorType   ScheduledJobExecutorType\n\tScheduleID     Expr\n}\n```\nShowSchedules represents a SHOW SCHEDULES statement.\n\n```go\nfunc (n *ShowSchedules) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSchedules) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSchedules) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSchedules) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSchedules) String() string\n```\n\n```go\ntype ShowSchemas struct {\n\tDatabase    Name\n\tWithComment bool\n}\n```\nShowSchemas represents a SHOW SCHEMAS statement.\n\n```go\nfunc (node *ShowSchemas) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSchemas) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSchemas) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSchemas) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSchemas) String() string\n```\n\n```go\ntype ShowSequences struct {\n\tDatabase Name\n}\n```\nShowSequences represents a SHOW SEQUENCES statement.\n\n```go\nfunc (node *ShowSequences) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSequences) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSequences) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSequences) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSequences) String() string\n```\n\n```go\ntype ShowSessions struct {\n\tAll     bool\n\tCluster bool\n}\n```\nShowSessions represents a SHOW SESSIONS statement\n\n```go\nfunc (node *ShowSessions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSessions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSessions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSessions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSessions) String() string\n```\n\n```go\ntype ShowSurvivalGoal struct {\n\tDatabaseName Name\n}\n```\nShowSurvivalGoal represents a SHOW SURVIVAL GOAL statement\n\n```go\nfunc (node *ShowSurvivalGoal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSurvivalGoal) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSurvivalGoal) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSurvivalGoal) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSurvivalGoal) String() string\n```\n\n```go\ntype ShowSyntax struct {\n\tStatement string\n}\n```\nShowSyntax represents a SHOW SYNTAX statement. This the most lightweight thing that can be done on a statement server-side: just report the statement that was entered without any processing. Meant for use for syntax checking on clients, when the client version might differ from the server.\n\n```go\nfunc (node *ShowSyntax) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowSyntax) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowSyntax) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowSyntax) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowSyntax) String() string\n```\n\n```go\ntype ShowTableStats struct {\n\tTable     *UnresolvedObjectName\n\tUsingJSON bool\n\tOptions   KVOptions\n}\n```\nShowTableStats represents a SHOW STATISTICS FOR TABLE statement.\n\n```go\nfunc (node *ShowTableStats) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTableStats) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTableStats) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTableStats) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTableStats) String() string\n```\n\n```go\ntype ShowTables struct {\n\tObjectNamePrefix\n\tWithComment bool\n}\n```\nShowTables represents a SHOW TABLES statement.\n\n```go\nfunc (node *ShowTables) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTables) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ShowTables) String() string\n```\n\n```go\ntype ShowTenant struct {\n\tTenantSpec *TenantSpec\n\tShowTenantOptions\n}\n```\nShowTenant represents a SHOW VIRTUAL CLUSTER statement.\n\n```go\nfunc (node *ShowTenant) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTenant) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTenant) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTenant) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTenant) String() string\n```\n\n```go\ntype ShowTenantClusterSetting struct {\n\t*ShowClusterSetting\n\tTenantSpec *TenantSpec\n}\n```\nShowTenantClusterSetting represents a SHOW CLUSTER SETTING ... FOR VIRTUAL CLUSTER statement.\n\n```go\nfunc (node *ShowTenantClusterSetting) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTenantClusterSetting) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTenantClusterSetting) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTenantClusterSetting) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTenantClusterSetting) String() string\n```\n\n```go\ntype ShowTenantClusterSettingList struct {\n\t*ShowClusterSettingList\n\tTenantSpec *TenantSpec\n}\n```\nShowTenantClusterSettingList represents a SHOW CLUSTER SETTINGS FOR VIRTUAL CLUSTER statement.\n\n```go\nfunc (node *ShowTenantClusterSettingList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTenantClusterSettingList) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTenantClusterSettingList) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTenantClusterSettingList) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTenantClusterSettingList) String() string\n```\n\n```go\ntype ShowTenantOptions struct {\n\tWithReplication      bool\n\tWithPriorReplication bool\n\tWithCapabilities     bool\n}\n```\nShowTenantOptions represents the WITH clause in SHOW VIRTUAL CLUSTER.\n\n```go\ntype ShowTraceForSession struct {\n\tTraceType ShowTraceType\n\tCompact   bool\n}\n```\nShowTraceForSession represents a SHOW TRACE FOR SESSION statement.\n\n```go\nfunc (node *ShowTraceForSession) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTraceForSession) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTraceForSession) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTraceForSession) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTraceForSession) String() string\n```\n\n```go\ntype ShowTraceType string\n```\nShowTraceType is an enum of SHOW TRACE variants.\n\n```go\nconst (\n\tShowTraceRaw     ShowTraceType = \"TRACE\"\n\tShowTraceKV      ShowTraceType = \"KV TRACE\"\n\tShowTraceReplica ShowTraceType = \"EXPERIMENTAL_REPLICA TRACE\"\n)\n```\nA list of the SHOW TRACE variants.\n\n```go\ntype ShowTransactionStatus struct {\n}\n```\nShowTransactionStatus represents a SHOW TRANSACTION STATUS statement.\n\n```go\nfunc (node *ShowTransactionStatus) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTransactionStatus) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTransactionStatus) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTransactionStatus) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTransactionStatus) String() string\n```\n\n```go\ntype ShowTransactions struct {\n\tAll     bool\n\tCluster bool\n}\n```\nShowTransactions represents a SHOW TRANSACTIONS statement\n\n```go\nfunc (node *ShowTransactions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTransactions) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface\n\n```go\nfunc (*ShowTransactions) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTransactions) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTransactions) String() string\n```\n\n```go\ntype ShowTransferState struct {\n\tTransferKey *StrVal\n}\n```\nShowTransferState represents a SHOW TRANSFER STATE statement.\n\n```go\nfunc (node *ShowTransferState) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTransferState) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTransferState) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTransferState) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTransferState) String() string\n```\n\n```go\ntype ShowTriggers struct {\n\tTable *UnresolvedObjectName\n}\n```\nShowTriggers represents a SHOW TRIGGERS statement.\n\n```go\nfunc (node *ShowTriggers) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTriggers) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTriggers) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTriggers) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTriggers) String() string\n```\n\n```go\ntype ShowTypes struct {\n\tWithComment bool\n}\n```\nShowTypes represents a SHOW TYPES statement.\n\n```go\nfunc (node *ShowTypes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowTypes) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowTypes) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowTypes) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowTypes) String() string\n```\n\n```go\ntype ShowUsers struct {\n}\n```\nShowUsers represents a SHOW USERS statement.\n\n```go\nfunc (node *ShowUsers) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowUsers) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowUsers) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowUsers) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowUsers) String() string\n```\n\n```go\ntype ShowVar struct {\n\tName string\n}\n```\nShowVar represents a SHOW statement.\n\n```go\nfunc (node *ShowVar) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowVar) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowVar) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowVar) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowVar) String() string\n```\n\n```go\ntype ShowZoneConfig struct {\n\tZoneSpecifier\n}\n```\nShowZoneConfig represents a SHOW ZONE CONFIGURATION statement.\n\n```go\nfunc (node *ShowZoneConfig) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ShowZoneConfig) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*ShowZoneConfig) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*ShowZoneConfig) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *ShowZoneConfig) String() string\n```\n\n```go\ntype SimilarToOp struct {\n\tEscape          rune\n\tCaseInsensitive bool\n}\n```\nSimilarToOp is a BinaryEvalOp.\n\n```go\nfunc (op *SimilarToOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype SimpleVisitFn func(expr Expr) (recurse bool, newExpr Expr, err error)\n```\nSimpleVisitFn is a function that is run for every node in the VisitPre stage; see SimpleVisit.\n\n```go\ntype SizeBatchParam struct {\n\t// Size is the expression specified by SIZE \u003csize\u003e.\n\t// It must be positive.\n\tSize Expr\n}\n```\nSizeBatchParam represents a BATCH (SIZE size) parameter.\n\n```go\nfunc (p *SizeBatchParam) Format(ctx *FmtCtx)\n```\nFormat implements NodeFormatter.\n\n```go\ntype SpecializedVectorizedBuiltin int\n```\nSpecializedVectorizedBuiltin is used to map overloads to the vectorized operator that is specific to that implementation of the builtin function.\n\n```go\nconst (\n\tSubstringStringIntInt SpecializedVectorizedBuiltin\n\tCrdbInternalRangeStats\n\tCrdbInternalRangeStatsWithErrors\n)\n```\nKeep this list alphabetized so that it is easy to manage.\n\n```go\ntype Split struct {\n\tTableOrIndex TableIndexName\n\t// Each row contains values for the columns in the PK or index (or a prefix\n\t// of the columns).\n\tRows *Select\n\t// Splits can last a specified amount of time before becoming eligible for\n\t// automatic merging.\n\tExpireExpr Expr\n}\n```\nSplit represents an \\`ALTER TABLE/INDEX .. SPLIT AT ..\\` statement.\n\n```go\nfunc (node *Split) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Split) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Split) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Split) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Split) String() string\n```\n\n```go\ntype SqrtDecimalOp struct{}\n```\nSqrtDecimalOp is a UnaryEvalOp.\n\n```go\nfunc (op *SqrtDecimalOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype SqrtFloatOp struct{}\n```\nSqrtFloatOp is a UnaryEvalOp.\n\n```go\nfunc (op *SqrtFloatOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype Statement interface {\n\tfmt.Stringer\n\tNodeFormatter\n\n\t// StatementReturnType is the return styles on the wire\n\t// (Ack, DDL, RowsAffected, Rows, CopyIn or Unknown)\n\tStatementReturnType() StatementReturnType\n\t// StatementType identifies whether the statement is a DDL, DML, DCL, or TCL.\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 MakeExplain(options []string, stmt Statement) (Statement, error)\n```\nMakeExplain parses the EXPLAIN option strings and generates an Explain or ExplainAnalyze statement.\n\n```go\nfunc SimpleStmtVisit(stmt Statement, preFn SimpleVisitFn) (Statement, error)\n```\nSimpleStmtVisit is a convenience wrapper for visitors that want to visit all part of a statement, only have VisitPre code and don't return any results except an error. The given function is called in VisitPre for every node. The visitor stops as soon as an error is returned.\n\n```go\nfunc UnwrapExplain(stmt Statement) Statement\n```\nUnwrapExplain returns the inner statement if the outer statement is an EXPLAIN or EXPLAIN ANALYZE statement. Otherwise, it just returns the original statemnt.\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\nNOTE: Beware that WalkStmt does not necessarily traverse all parts of a statement by itself. For example, it will not walk into Subquery nodes within a FROM clause or into a JoinCond. Walk's logic is pretty interdependent with the logic for constructing a query plan.\n\n```go\ntype StatementReturnType int\n```\nStatementReturnType 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 StatementReturnType = iota\n\t// DDL indicates that the statement mutates the database schema.\n\t//\n\t// Note: this is the type indicated back to the client; it is not a\n\t// sufficient test for schema mutation for planning purposes. There\n\t// are schema-modifying statements (e.g. DISCARD ALL) which\n\t// report Ack to the client, not DDL.\n\t// Use CanModifySchema() below instead.\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\t// CopyIn indicates a COPY FROM statement.\n\tCopyIn\n\t// CopyOut indicates a COPY TO statement.\n\tCopyOut\n\t// Replication indicates a replication protocol statement.\n\tReplication\n\t// Unknown indicates that the statement does not have a known\n\t// return style at the time of parsing. This is not first in the\n\t// enumeration because it is more convenient to have Ack as a zero\n\t// value, and because the use of Unknown should be an explicit choice.\n\t// The primary example of this statement type is EXECUTE, where the\n\t// statement type depends on the statement type of the prepared statement\n\t// being executed.\n\tUnknown\n)\n```\n\n```go\nfunc (i StatementReturnType) String() string\n```\n\n```go\ntype StatementSource struct {\n\tStatement Statement\n}\n```\nStatementSource encapsulates one of the other statements as a data source.\n\n```go\nfunc (node *StatementSource) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (expr *StatementSource) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype StatementType int\n```\nStatementType is the enumerated type for Statement type return\n\n```go\nconst (\n\t// DDL (Data Definition Language) deals with database schemas and descriptions.\n\tTypeDDL StatementType = iota\n\t// DML (Data Manipulation Language) deals with data manipulation and it is used to\n\t// store, modify, retrieve, delete and update data in a database.\n\tTypeDML\n\t// DCL (Data Control Language) deals with commands such as GRANT and mostly\n\t// concerned with rights, permissions and other controls of the database system.\n\tTypeDCL\n\t// TCL (Transaction Control Language) deals with a transaction within a database.\n\tTypeTCL\n)\n```\n\n```go\nfunc (i StatementType) String() string\n```\n\n```go\ntype Statements []Statement\n```\nStatements represent a list of statements.\n\n```go\ntype StorageParam struct {\n\tKey   string\n\tValue Expr\n}\n```\nStorageParam is a key-value parameter for table storage.\n\n```go\ntype StorageParams []StorageParam\n```\nStorageParams is a list of StorageParams.\n\n```go\nfunc (o *StorageParams) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o *StorageParams) GetVal(key string) Expr\n```\nGetVal returns corresponding value if a key exists, otherwise nil is returned.\n\n```go\ntype StoredProcContinuation interface{}\n```\nStoredProcContinuation represents the plan for a CALL statement that resumes execution of a stored procedure that paused in order to execute a COMMIT or ROLLBACK statement. Currently maps to \\*memo.Memo.\n\n```go\ntype StoredProcTxnOp uint8\n```\nStoredProcTxnOp indicates whether a stored procedure has requested that the current transaction be committed or aborted.\n\n```go\nconst (\n\tStoredProcTxnNoOp StoredProcTxnOp = iota\n\tStoredProcTxnCommit\n\tStoredProcTxnRollback\n)\n```\n\n```go\nfunc (txnOp StoredProcTxnOp) String() string\n```\nString returns a string representation of the transaction control statement.\n\n```go\ntype StrVal struct {\n\t// contains filtered or unexported fields\n}\n```\nStrVal represents a constant string value.\n\n```go\nfunc NewBytesStrVal(s string) *StrVal\n```\nNewBytesStrVal constructs a StrVal instance suitable as byte array. This is used during parsing when interpreting a token of type BCONST, i.e. using the b'...' or x'...' syntax.\n\n```go\nfunc NewStrVal(s string) *StrVal\n```\nNewStrVal constructs a StrVal instance. This is used during parsing when interpreting a token of type SCONST, i.e. \\*not\\* using the b'...' or x'...' syntax.\n\n```go\nfunc (expr *StrVal) AvailableTypes() []*types.T\n```\nAvailableTypes implements the Constant interface.\n\nTo fully take advantage of literal type inference, this method would determine exactly which types are available for a given string. This would entail attempting to parse the literal string as a date, a timestamp, an interval, etc. and having more fine-grained results than StrValAvailAllParsable. However, this is not feasible in practice because of the associated parsing overhead.\n\nConservative approaches like checking the string's length have been investigated to reduce ambiguity and improve type inference in some cases. When doing so, the length of the string literal was compared against all valid date and timestamp formats to quickly gain limited insight into whether parsing the string as the respective datum types could succeed. The hope was to eliminate impossibilities and constrain the returned type sets as much as possible. Unfortunately, two issues were found with this approach:\n\n  - date and timestamp formats do not always imply a fixed-length valid input. For instance, timestamp formats that take fractional seconds can successfully parse inputs of varied length.\n  - the set of date and timestamp formats are not disjoint, which means that ambiguity can not be eliminated when inferring the type of string literals that use these shared formats.\n\nWhile these limitations still permitted improved type inference in many cases, they resulted in behavior that was ultimately incomplete, resulted in unpredictable levels of inference, and occasionally failed to eliminate ambiguity. Further heuristics could have been applied to improve the accuracy of the inference, like checking that all or some characters were digits, but it would not have circumvented the fundamental issues here. Fully parsing the literal into each type would be the only way to concretely avoid the issue of unpredictable inference behavior.\n\n```go\nfunc (expr *StrVal) DesirableTypes() []*types.T\n```\nDesirableTypes implements the Constant interface.\n\n```go\nfunc (expr *StrVal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (expr *StrVal) RawString() string\n```\nRawString retrieves the underlying string of the StrVal.\n\n```go\nfunc (expr *StrVal) ResolveAsType(\n\tctx context.Context, semaCtx *SemaContext, typ *types.T,\n) (TypedExpr, error)\n```\nResolveAsType implements the Constant interface.\n\n```go\nfunc (node *StrVal) String() string\n```\n\n```go\nfunc (expr *StrVal) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *StrVal) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype StringOrPlaceholderOptList []Expr\n```\nStringOrPlaceholderOptList is a list of strings or placeholders.\n\n```go\nfunc (node *StringOrPlaceholderOptList) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Subquery struct {\n\tSelect SelectStatement\n\tExists bool\n\n\t// Idx is a query-unique index for the subquery.\n\t// Subqueries are 1-indexed to ensure that the default\n\t// value 0 can be used to detect uninitialized subqueries.\n\tIdx int\n\t// contains filtered or unexported fields\n}\n```\nSubquery represents a subquery.\n\n```go\nfunc (node *Subquery) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *Subquery) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *Subquery) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (node *Subquery) SetType(t *types.T)\n```\nSetType forces the type annotation on the Subquery node.\n\n```go\nfunc (node *Subquery) String() string\n```\n\n```go\nfunc (*Subquery) SubqueryExpr()\n```\nSubqueryExpr implements the SubqueryExpr interface.\n\n```go\nfunc (expr *Subquery) TypeCheck(_ context.Context, sc *SemaContext, _ *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (*Subquery) Variable()\n```\nVariable implements the VariableExpr interface.\n\n```go\nfunc (expr *Subquery) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\nfunc (expr *Subquery) WalkTableExpr(v Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype SubqueryExpr interface {\n\tExpr\n\tSubqueryExpr()\n}\n```\nSubqueryExpr is an interface used to identify an expression as a subquery. It is implemented by both tree.Subquery and optbuilder.subquery, and is used in TypeCheck.\n\n```go\ntype SuperRegion struct {\n\tName    Name\n\tRegions NameList\n}\n```\n\n```go\nfunc (node *SuperRegion) Format(ctx *FmtCtx)\n```\n\n```go\ntype SurvivalGoal uint32\n```\nSurvivalGoal represents the desired survivability level for a given database.\n\n```go\nconst (\n\t// SurvivalGoalDefault indicates default survive behavior.\n\t// This will get translated to the appropriate value when persisted.\n\tSurvivalGoalDefault SurvivalGoal = iota\n\t// SurvivalGoalRegionFailure indicates a database being able to withstand\n\t// an entire region failure.\n\tSurvivalGoalRegionFailure\n\t// SurvivalGoalZoneFailure indicates a database being able to\n\t// withstand a failure of an availibility zone.\n\tSurvivalGoalZoneFailure\n)\n```\n\n```go\nfunc (node *SurvivalGoal) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *SurvivalGoal) TelemetryName() string\n```\nTelemetryName returns a representation of SurvivalGoal suitable for telemetry\n\n```go\ntype TSMatchesQueryVectorOp struct{}\n```\nTSMatchesQueryVectorOp is a BinaryEvalOp.\n\n```go\nfunc (op *TSMatchesQueryVectorOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype TSMatchesVectorQueryOp struct{}\n```\nTSMatchesVectorQueryOp is a BinaryEvalOp.\n\n```go\nfunc (op *TSMatchesVectorQueryOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error)\n```\nEval is part of the BinaryEvalOp interface.\n\n```go\ntype TableAttrs struct {\n\tSequenceOnly  bool\n\tTablePatterns TablePatterns\n}\n```\nTableAttrs saves the table petterns and a bool field SequenceOnly that shows if all tables are sequences.\n\n```go\ntype TableDef interface {\n\tNodeFormatter\n\t// contains filtered or unexported methods\n}\n```\nTableDef represents a column, index or constraint 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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TableExpr interface {\n\tNodeFormatter\n\n\tWalkTableExpr(Visitor) TableExpr\n\t// contains filtered or unexported methods\n}\n```\nTableExpr represents a table expression.\n\n```go\nfunc StripTableParens(expr TableExpr) TableExpr\n```\nStripTableParens strips any parentheses surrounding a selection clause.\n\n```go\ntype TableExprs []TableExpr\n```\nTableExprs represents a list of table expressions.\n\n```go\nfunc (node *TableExprs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TableIndexName struct {\n\tTable TableName\n\tIndex UnrestrictedName\n}\n```\nTableIndexName refers to a table index. There are a few cases:\n\n  - if both the table name and the index name are set, refers to a specific index in a specific table.\n\n  - if the table name is set and index name is empty, refers to the primary index of that table.\n\n  - if the table name is empty and the index name is set, refers to an index of that name among all tables within a catalog/schema; if there is a duplicate name, that will result in an error. Note that it is possible to specify the schema or catalog without specifying a table name; in this case, Table.ObjectNamePrefix has the fields set but Table.ObjectName is empty.\n\n```go\nfunc (n *TableIndexName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *TableIndexName) String() string\n```\n\n```go\ntype TableIndexNames []*TableIndexName\n```\nTableIndexNames is a list of indexes.\n\n```go\nfunc (n *TableIndexNames) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TableName struct {\n\t// contains filtered or unexported fields\n}\n```\nTableName corresponds to the name of a table in a FROM clause, INSERT or UPDATE statement, etc.\n\nThis is constructed for incoming SQL queries from an UnresolvedObjectName,\n\nInternal uses of this struct should not construct instances of TableName directly, and instead use the NewTableName / MakeTableName functions underneath.\n\nTableName is a public type for objName. It exposes the fields and can be default-constructed but cannot be instantiated with a non-default value; this encourages the use of the constructors below.\n\n```go\nfunc MakeTableNameFromPrefix(prefix ObjectNamePrefix, object Name) TableName\n```\nMakeTableNameFromPrefix creates a table name from an unqualified name and a resolved prefix.\n\n```go\nfunc MakeTableNameWithSchema(db, schema, tbl Name) TableName\n```\nMakeTableNameWithSchema creates a new fully qualified table name.\n\n```go\nfunc MakeUnqualifiedTableName(tbl Name) TableName\n```\nMakeUnqualifiedTableName creates a new base table name.\n\n```go\nfunc NewTableNameWithSchema(db, sc, tbl Name) *TableName\n```\nNewTableNameWithSchema creates a new table name qualified with a given catalog and schema.\n\n```go\nfunc NewUnqualifiedTableName(tbl Name) *TableName\n```\nNewUnqualifiedTableName creates a new base table name.\n\n```go\nfunc (t *TableName) Equals(other *TableName) bool\n```\nEquals returns true if the two table names are identical (including the ExplicitSchema/ExplicitCatalog flags).\n\n```go\nfunc (o *TableName) FQString() string\n```\nFQString renders the table name in full, not omitting the prefix schema and catalog names. Suitable for logging, etc.\n\n```go\nfunc (t *TableName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (t *TableName) NormalizeTablePattern() (TablePattern, error)\n```\nNormalizeTablePattern implements the TablePattern interface.\n\n```go\nfunc (o *TableName) Object() string\n```\n\n```go\nfunc (o *TableName) String() string\n```\n\n```go\nfunc (t *TableName) Table() string\n```\nTable retrieves the unqualified table name.\n\n```go\nfunc (o *TableName) ToUnresolvedObjectName() *UnresolvedObjectName\n```\nToUnresolvedObjectName converts the type name to an unresolved object name. Schema and catalog are included if indicated by the ExplicitSchema and ExplicitCatalog flags.\n\n```go\nfunc (expr *TableName) WalkTableExpr(_ Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype TableNames []TableName\n```\nTableNames represents a comma separated list (see the Format method) of table names.\n\n```go\nfunc (ts *TableNames) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (ts *TableNames) String() string\n```\n\n```go\ntype TablePattern interface {\n\tfmt.Stringer\n\tNodeFormatter\n\n\t// NormalizeTablePattern() guarantees to return a pattern that is\n\t// not an UnresolvedName. This converts the UnresolvedName to an\n\t// AllTablesSelector or TableName as necessary.\n\tNormalizeTablePattern() (TablePattern, error)\n}\n```\nTablePattern is the common interface to UnresolvedName, TableName and AllTablesSelector.\n\n```go\ntype TablePatterns []TablePattern\n```\nTablePatterns implement a comma-separated list of table patterns. Used by e.g. the GRANT statement.\n\n```go\nfunc (tt *TablePatterns) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TableRLSMode int\n```\nTableRLSMode represents different modes that the table can be in for row-level security.\n\n```go\nconst (\n\tTableRLSEnable TableRLSMode = iota\n\tTableRLSDisable\n\tTableRLSForce\n\tTableRLSNoForce\n)\n```\nTableRLSMode values\n\n```go\nfunc (r TableRLSMode) SafeValue()\n```\nSafeValue implements the redact.SafeValue interface.\n\n```go\nfunc (r TableRLSMode) String() string\n```\n\n```go\nfunc (r TableRLSMode) TelemetryName() string\n```\nTelemetryName implements the AlterTableCmd interface.\n\n```go\ntype TableRef struct {\n\t// TableID is the descriptor ID of the requested table.\n\tTableID int64\n\n\t// ColumnIDs is the list of column IDs requested in the table.\n\t// Note that a nil array here means \"unspecified\" (all columns)\n\t// whereas an array of length 0 means \"zero columns\".\n\t// Lists of zero columns are not supported and will throw an error.\n\tColumns []ColumnID\n\n\t// As determines the names that can be used in the surrounding query\n\t// to refer to this source.\n\tAs AliasClause\n}\n```\nTableRef represents a numeric table reference. (Syntax !NNN in SQL.)\n\n```go\nfunc (n *TableRef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *TableRef) String() string\n```\n\n```go\nfunc (expr *TableRef) WalkTableExpr(_ Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype TenantCapability struct {\n\tName  string\n\tValue Expr\n}\n```\nTenantCapability is a key-value parameter representing a tenant capability.\n\n```go\ntype TenantID struct {\n\tID uint64\n\n\t// Specified is set to true when the TENANT clause was specified in\n\t// the backup target input syntax. We need this, instead of relying\n\t// on ID != 0, because we need a special marker for\n\t// the case when the value was anonymized. In other places, the\n\t// value used for anonymized integer literals is 0, but we can't use\n\t// 0 for TenantID as this is refused during parsing, nor can we use\n\t// any other value since all non-zero integers are valid tenant IDs.\n\tSpecified bool\n}\n```\nTenantID represents a tenant ID that can be pretty-printed.\n\n```go\nfunc (t *TenantID) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (t *TenantID) IsSet() bool\n```\nIsSet returns whether the TenantID is set.\n\n```go\ntype TenantReplicationOptions struct {\n\tRetention          Expr\n\tExpirationWindow   Expr\n\tEnableReaderTenant *DBool\n}\n```\nTenantReplicationOptions  options for the CREATE/ALTER VIRTUAL CLUSTER FROM REPLICATION command.\n\n```go\nfunc (o *TenantReplicationOptions) CombineWith(other *TenantReplicationOptions) error\n```\nCombineWith merges other TenantReplicationOptions into this struct. An error is returned if the same option merged multiple times.\n\n```go\nfunc (o TenantReplicationOptions) ExpirationWindowSet() bool\n```\n\n```go\nfunc (o *TenantReplicationOptions) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface\n\n```go\nfunc (o TenantReplicationOptions) IsDefault() bool\n```\nIsDefault returns true if this backup options struct has default value.\n\n```go\ntype TenantServiceCmd int8\n```\nTenantServiceCmd represents a parameter to ALTER VIRTUAL CLUSTER.\n\n```go\nconst (\n\t// TenantStartServiceExternal encodes START SERVICE EXTERNAL.\n\tTenantStartServiceExternal TenantServiceCmd = 0\n\t// TenantStartServiceExternal encodes START SERVICE SHARED.\n\tTenantStartServiceShared TenantServiceCmd = 1\n\t// TenantStartServiceExternal encodes STOP SERVICE.\n\tTenantStopService TenantServiceCmd = 2\n)\n```\n\n```go\ntype TenantSpec struct {\n\tExpr   Expr\n\tIsName bool\n\tAll    bool\n}\n```\nTenantSpec designates a tenant for the ALTER VIRTUAL CLUSTER statements.\n\n```go\nfunc (n *TenantSpec) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *TenantSpec) String() string\n```\n\n```go\ntype TestingMapTypeResolver struct {\n\t// contains filtered or unexported fields\n}\n```\nTestingMapTypeResolver is a fake type resolver for testing purposes.\n\n```go\nfunc (dtr *TestingMapTypeResolver) ResolveType(\n\t_ context.Context, name *UnresolvedObjectName,\n) (*types.T, error)\n```\nResolveType implements the TypeReferenceResolver interface.\n\n```go\nfunc (dtr *TestingMapTypeResolver) ResolveTypeByOID(context.Context, oid.Oid) (*types.T, error)\n```\nResolveTypeByOID implements the TypeReferenceResolver interface.\n\n```go\ntype TransactionModes struct {\n\tIsolation     IsolationLevel\n\tUserPriority  UserPriority\n\tReadWriteMode ReadWriteMode\n\tAsOf          AsOfClause\n\tDeferrable    DeferrableMode\n}\n```\nTransactionModes holds the transaction modes for a transaction.\n\n```go\nfunc (node *TransactionModes) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *TransactionModes) Merge(other TransactionModes) error\n```\nMerge groups two sets of transaction modes together. Used in the parser.\n\n```go\ntype TriggerActionTime uint8\n```\n\n```go\nconst (\n\tTriggerActionTimeUnknown TriggerActionTime = iota\n\tTriggerActionTimeBefore\n\tTriggerActionTimeAfter\n\tTriggerActionTimeInsteadOf\n)\n```\n\n```go\nfunc (node *TriggerActionTime) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TriggerEvent struct {\n\tEventType TriggerEventType\n\tColumns   NameList\n}\n```\n\n```go\nfunc (node *TriggerEvent) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TriggerEventType uint8\n```\n\n```go\nconst (\n\tTriggerEventTypeUnknown TriggerEventType = iota\n\tTriggerEventInsert\n\tTriggerEventUpdate\n\tTriggerEventDelete\n\tTriggerEventTruncate\n\tTriggerEventTypeMax = iota - 1\n)\n```\n\n```go\nfunc (node *TriggerEventType) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *TriggerEventType) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype TriggerEventTypeSet uint8\n```\nTriggerEventTypeSet is a set of TriggerEventType values, used to conveniently check for the presence of a given event type in a trigger definition.\n\n```go\nfunc MakeTriggerEventTypeSet(types ...TriggerEventType) TriggerEventTypeSet\n```\nMakeTriggerEventTypeSet creates a TriggerEventTypeSet from a list of TriggerEventType values.\n\n```go\nfunc (s *TriggerEventTypeSet) Add(t TriggerEventType)\n```\nAdd adds a TriggerEventType value to the set.\n\n```go\nfunc (s TriggerEventTypeSet) Contains(t TriggerEventType) bool\n```\nContains returns true if the set contains the given TriggerEventType value.\n\n```go\ntype TriggerForEach uint8\n```\n\n```go\nconst (\n\tTriggerForEachStatement TriggerForEach = iota\n\tTriggerForEachRow\n)\n```\n\n```go\nfunc (node *TriggerForEach) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype TriggerTransition struct {\n\tName  Name\n\tIsNew bool\n\tIsRow bool\n}\n```\n\n```go\nfunc (node *TriggerTransition) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Truncate struct {\n\tTables       TableNames\n\tDropBehavior DropBehavior\n}\n```\nTruncate represents a TRUNCATE statement.\n\n```go\nfunc (node *Truncate) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Truncate) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *Truncate) String() string\n```\n\n```go\ntype Tuple struct {\n\tExprs  Exprs\n\tLabels []string\n\n\t// Row indicates whether `ROW` was used in the input syntax. This is\n\t// used solely to generate column names automatically, see\n\t// col_name.go.\n\tRow bool\n\t// contains filtered or unexported fields\n}\n```\nTuple represents a parenthesized list of expressions.\n\n```go\nfunc NewTypedTuple(typ *types.T, typedExprs Exprs) *Tuple\n```\nNewTypedTuple returns a new Tuple that is verified to be well-typed.\n\n```go\nfunc (node *Tuple) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *Tuple) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *Tuple) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (node *Tuple) String() string\n```\n\n```go\nfunc (expr *Tuple) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, 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 TupleStar struct {\n\tExpr Expr\n}\n```\nTupleStar represents (E).\\* expressions. It is meant to evaporate during star expansion.\n\n```go\nfunc (node *TupleStar) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *TupleStar) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *TupleStar) NormalizeVarName() (VarName, error)\n```\nNormalizeVarName implements the VarName interface.\n\n```go\nfunc (expr *TupleStar) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (node *TupleStar) String() string\n```\n\n```go\nfunc (expr *TupleStar) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (expr *TupleStar) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype TxnControlExpr struct {\n\tOp    StoredProcTxnOp\n\tModes TransactionModes\n\tArgs  TypedExprs\n\tGen   TxnControlPlanGenerator\n\n\tName string\n\tTyp  *types.T\n}\n```\nTxnControlExpr implements PL/pgSQL COMMIT and ROLLBACK statements. It directs the session to end the current transaction, and provides a plan to resume execution in a new transaction in the form of StoredProcContinuation.\n\n```go\nfunc NewTxnControlExpr(\n\topType StoredProcTxnOp,\n\ttxnModes TransactionModes,\n\targs TypedExprs,\n\tgen TxnControlPlanGenerator,\n\tname string,\n\ttyp *types.T,\n) *TxnControlExpr\n```\nNewTxnControlExpr returns a new TxnControlExpr that is well-typed.\n\n```go\nfunc (node *TxnControlExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *TxnControlExpr) Format(ctx *FmtCtx)\n```\nFormat is part of the Expr interface.\n\n```go\nfunc (node *TxnControlExpr) ResolvedType() *types.T\n```\nResolvedType is part of the TypedExpr interface.\n\n```go\nfunc (node *TxnControlExpr) String() string\n```\n\n```go\nfunc (node *TxnControlExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck is part of the Expr interface.\n\n```go\nfunc (node *TxnControlExpr) Walk(v Visitor) Expr\n```\nWalk is part of the Expr interface.\n\n```go\ntype TxnControlPlanGenerator func(\n\tctx context.Context, args Datums,\n) (StoredProcContinuation, error)\n```\nTxnControlPlanGenerator builds the plan for a StoredProcContinuation.\n\n```go\ntype TypeCollectorVisitor struct {\n\tOIDs map[oid.Oid]struct{}\n}\n```\nTypeCollectorVisitor is an expression visitor that collects all explicit OID type references in an expression.\n\n```go\nfunc (v *TypeCollectorVisitor) VisitPost(e Expr) Expr\n```\nVisitPost implements the Visitor interface.\n\n```go\nfunc (v *TypeCollectorVisitor) VisitPre(expr Expr) (bool, Expr)\n```\nVisitPre implements the Visitor interface.\n\n```go\ntype TypeList interface {\n\t// Match checks if all types in the TypeList match the corresponding elements in types.\n\tMatch(types []*types.T) bool\n\t// MatchOid is similar to match but checks that the types have the same\n\t// Oids, instead of being equivalent (in types.T.Equivalent sense) matches.\n\tMatchOid(types []*types.T) bool\n\t// MatchAt checks if the parameter type at index i of the TypeList matches type typ.\n\t// In all implementations, types.Null will match with each parameter type, allowing\n\t// NULL values to be used as arguments.\n\tMatchAt(typ *types.T, i int) bool\n\t// MatchAtOid is similar to MatchAt but checks that the Oid of the type at\n\t// index i of the Typelist is the same as the Oid of typ.\n\tMatchAtOid(typ *types.T, i int) bool\n\t// MatchLen checks that the TypeList can support l parameters.\n\tMatchLen(l int) bool\n\t// GetAt returns the type at the given index in the TypeList, or nil if the TypeList\n\t// cannot have a parameter at index i.\n\tGetAt(i int) *types.T\n\t// Length returns the number of types in the list\n\tLength() int\n\t// Types returns a realized copy of the list. variadic lists return a list of size one.\n\tTypes() []*types.T\n\t// String returns a human readable signature\n\tString() string\n}\n```\nTypeList is a list of types representing a function parameter list.\n\n```go\ntype TypeName struct {\n\t// contains filtered or unexported fields\n}\n```\nTypeName corresponds to the name of a type in a CREATE TYPE statement, in an expression, or column type etc.\n\nUsers of this struct should not construct it directly, and instead use the constructors below.\n\n```go\nfunc MakeQualifiedTypeName(db, schema, typ string) TypeName\n```\nMakeQualifiedTypeName creates a fully qualified type name.\n\n```go\nfunc MakeSchemaQualifiedTypeName(schema, typ string) TypeName\n```\nMakeSchemaQualifiedTypeName returns a new type name.\n\n```go\nfunc MakeTypeNameWithPrefix(prefix ObjectNamePrefix, typ string) TypeName\n```\nMakeTypeNameWithPrefix creates a type name with the provided prefix.\n\n```go\nfunc MakeUnqualifiedTypeName(typ string) TypeName\n```\nMakeUnqualifiedTypeName returns a new type name.\n\n```go\nfunc NewQualifiedTypeName(db, schema, typ string) *TypeName\n```\nNewQualifiedTypeName returns a fully qualified type name.\n\n```go\nfunc NewUnqualifiedTypeName(typ string) *TypeName\n```\nNewUnqualifiedTypeName returns a new base type name.\n\n```go\nfunc (o *TypeName) FQString() string\n```\nFQString renders the table name in full, not omitting the prefix schema and catalog names. Suitable for logging, etc.\n\n```go\nfunc (t *TypeName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o *TypeName) Object() string\n```\n\n```go\nfunc (t *TypeName) SQLString() string\n```\nSQLString implements the ResolvableTypeReference interface.\n\n```go\nfunc (o *TypeName) String() string\n```\n\n```go\nfunc (o *TypeName) ToUnresolvedObjectName() *UnresolvedObjectName\n```\nToUnresolvedObjectName converts the type name to an unresolved object name. Schema and catalog are included if indicated by the ExplicitSchema and ExplicitCatalog flags.\n\n```go\nfunc (t *TypeName) Type() string\n```\nType returns the unqualified name of this TypeName.\n\n```go\ntype TypeReferenceResolver interface {\n\tResolveType(ctx context.Context, name *UnresolvedObjectName) (*types.T, error)\n\tResolveTypeByOID(ctx context.Context, oid oid.Oid) (*types.T, error)\n}\n```\nTypeReferenceResolver is the interface that will provide the ability to actually look up type metadata and transform references into \\*types.T's. Implementers of TypeReferenceResolver should also implement descpb.TypeDescriptorResolver is sqlbase.TypeDescriptorInterface is the underlying representation of a user defined type.\n\n```go\nfunc MakeTestingMapTypeResolver(typeMap map[string]*types.T) TypeReferenceResolver\n```\nMakeTestingMapTypeResolver creates a TestingMapTypeResolver from a map.\n\n```go\ntype TypedDummy struct {\n\tTyp *types.T\n}\n```\nTypedDummy is a dummy expression that represents a dummy value with a specified type. It can be used in situations where TypedExprs of a particular type are required for semantic analysis.\n\n```go\nfunc (node *TypedDummy) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *TypedDummy) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *TypedDummy) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (node *TypedDummy) String() string\n```\n\n```go\nfunc (node *TypedDummy) TypeCheck(context.Context, *SemaContext, *types.T) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *TypedDummy) Walk(Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype TypedExpr interface {\n\tExpr\n\n\t// ResolvedType provides the type of the TypedExpr, which is the type of Datum\n\t// that the TypedExpr will return when evaluated.\n\tResolvedType() *types.T\n\n\t// Eval evaluates an SQL expression. Expression evaluation is a\n\t// mostly straightforward walk over the parse tree. The only\n\t// significant complexity is the handling of types and implicit\n\t// conversions. See binOps and cmpOps for more details. Note that\n\t// expression evaluation returns an error if certain node types are\n\t// encountered: Placeholder, VarName (and related UnqualifiedStar,\n\t// UnresolvedName and AllColumnsSelector) or Subquery. These nodes\n\t// should be replaced prior to expression evaluation by an\n\t// appropriate WalkExpr. For example, Placeholder should be replaced\n\t// by the argument passed from the client.\n\tEval(context.Context, ExprEvaluator) (Datum, error)\n}\n```\nTypedExpr represents a well-typed expression.\n\n```go\nfunc TypeCheck(\n\tctx context.Context, expr Expr, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck performs type checking on the provided expression tree, returning the new typed expression tree, which additionally permits evaluation and type introspection globally and on each sub-tree.\n\nWhile doing so, it will fold numeric constants and bind placeholder names to their inferred types in the provided context. The optional desired parameter can be used to hint the desired type for the root of the resulting typed expression tree. Like with Expr.TypeCheck, it is not valid to provide a nil desired type. Instead, call it with the wildcard type types.AnyElement if no specific type is desired.\n\n```go\nfunc TypeCheckAndRequire(\n\tctx context.Context, expr Expr, semaCtx *SemaContext, required *types.T, op string,\n) (TypedExpr, error)\n```\nTypeCheckAndRequire performs type checking on the provided expression tree in an identical manner to TypeCheck. It then asserts that the resulting TypedExpr has the provided return type, returning both the typed expression and an error if it does not.\n\n```go\ntype TypedExprs []TypedExpr\n```\nTypedExprs represents a list of well-typed value expressions. It's not a valid expression because it's not parenthesized.\n\n```go\nfunc (node *TypedExprs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *TypedExprs) String() string\n```\n\n```go\ntype UDFDisallowanceVisitor struct {\n\tFoundUDF bool\n}\n```\nUDFDisallowanceVisitor is used to determine if a type checked expression contains any UDF function sub-expression. It's needed only temporarily to disallow any usage of UDF from relation objects.\n\n```go\nfunc (v *UDFDisallowanceVisitor) VisitPost(expr Expr) (newNode Expr)\n```\nVisitPost implements the Visitor interface.\n\n```go\nfunc (v *UDFDisallowanceVisitor) VisitPre(expr Expr) (recurse bool, newExpr Expr)\n```\nVisitPre implements the Visitor interface.\n\n```go\ntype UnaryEvalOp interface {\n\tEval(context.Context, OpEvaluator, Datum) (Datum, error)\n}\n```\nUnaryEvalOp is a unary operation which can be evaluated.\n\n```go\ntype UnaryExpr struct {\n\tOperator UnaryOperator\n\tExpr     Expr\n\t// contains filtered or unexported fields\n}\n```\nUnaryExpr represents a unary value expression.\n\n```go\nfunc NewTypedUnaryExpr(op UnaryOperator, expr TypedExpr, typ *types.T) *UnaryExpr\n```\nNewTypedUnaryExpr returns a new UnaryExpr that is well-typed.\n\n```go\nfunc (node *UnaryExpr) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (node *UnaryExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *UnaryExpr) GetOp() *UnaryOp\n```\nGetOp exposes the underlying UnaryOp.\n\n```go\nfunc (ta UnaryExpr) ResolvedType() *types.T\n```\n\n```go\nfunc (node *UnaryExpr) String() string\n```\n\n```go\nfunc (expr *UnaryExpr) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (node *UnaryExpr) TypedInnerExpr() TypedExpr\n```\nTypedInnerExpr returns the UnaryExpr's inner expression as a TypedExpr.\n\n```go\nfunc (expr *UnaryExpr) Walk(v Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype UnaryMinusDecimalOp struct{}\n```\nUnaryMinusDecimalOp is a UnaryEvalOp.\n\n```go\nfunc (op *UnaryMinusDecimalOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype UnaryMinusFloatOp struct{}\n```\nUnaryMinusFloatOp is a UnaryEvalOp.\n\n```go\nfunc (op *UnaryMinusFloatOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype UnaryMinusIntOp struct{}\n```\nUnaryMinusIntOp is a UnaryEvalOp.\n\n```go\nfunc (op *UnaryMinusIntOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype UnaryMinusIntervalOp struct{}\n```\nUnaryMinusIntervalOp is a UnaryEvalOp.\n\n```go\nfunc (op *UnaryMinusIntervalOp) Eval(ctx context.Context, e OpEvaluator, v Datum) (Datum, error)\n```\nEval is part of the UnaryEvalOp interface.\n\n```go\ntype UnaryNoop struct{}\n```\nUnaryNoop is a UnaryEvalOp.\n\n```go\nfunc (v *UnaryNoop) Eval(ctx context.Context, evaluator OpEvaluator, d Datum) (Datum, error)\n```\nEval of UnaryNoop does nothing and returns the passed Datum.\n\n```go\ntype UnaryOp struct {\n\tTyp        *types.T\n\tReturnType *types.T\n\tEvalOp     UnaryEvalOp\n\tVolatility volatility.V\n\n\t// OnTypeCheck is called when the op is type checked.\n\tOnTypeCheck func()\n\t// contains filtered or unexported fields\n}\n```\nUnaryOp is a unary operator.\n\n```go\ntype UnaryOpEvaluator interface {\n\tEvalCbrtDecimalOp(context.Context, *CbrtDecimalOp, Datum) (Datum, error)\n\tEvalCbrtFloatOp(context.Context, *CbrtFloatOp, Datum) (Datum, error)\n\tEvalComplementINetOp(context.Context, *ComplementINetOp, Datum) (Datum, error)\n\tEvalComplementIntOp(context.Context, *ComplementIntOp, Datum) (Datum, error)\n\tEvalComplementVarBitOp(context.Context, *ComplementVarBitOp, Datum) (Datum, error)\n\tEvalSqrtDecimalOp(context.Context, *SqrtDecimalOp, Datum) (Datum, error)\n\tEvalSqrtFloatOp(context.Context, *SqrtFloatOp, Datum) (Datum, error)\n\tEvalUnaryMinusDecimalOp(context.Context, *UnaryMinusDecimalOp, Datum) (Datum, error)\n\tEvalUnaryMinusFloatOp(context.Context, *UnaryMinusFloatOp, Datum) (Datum, error)\n\tEvalUnaryMinusIntOp(context.Context, *UnaryMinusIntOp, Datum) (Datum, error)\n\tEvalUnaryMinusIntervalOp(context.Context, *UnaryMinusIntervalOp, Datum) (Datum, error)\n}\n```\nUnaryOpEvaluator knows how to evaluate UnaryEvalOps.\n\n```go\ntype UnaryOpOverloads struct {\n\t// contains filtered or unexported fields\n}\n```\nUnaryOpOverloads is an overloaded set of unary operator implementations. It implements overloadSet.\n\n```go\nfunc (u *UnaryOpOverloads) ForEachUnaryOp(f func(op *UnaryOp) error) error\n```\nForEachUnaryOp iterates the set of overloads.\n\n```go\ntype UnaryOperator struct {\n\tSymbol UnaryOperatorSymbol\n\t// IsExplicitOperator is true if OPERATOR(symbol) is used.\n\tIsExplicitOperator bool\n}\n```\nUnaryOperator represents a unary operator used in a UnaryExpr.\n\n```go\nfunc MakeUnaryOperator(symbol UnaryOperatorSymbol) UnaryOperator\n```\nMakeUnaryOperator creates a UnaryOperator given a symbol.\n\n```go\nfunc (UnaryOperator) Operator()\n```\nOperator implements tree.Operator.\n\n```go\nfunc (o UnaryOperator) String() string\n```\n\n```go\ntype UnaryOperatorSymbol uint8\n```\nUnaryOperatorSymbol represents a unary operator.\n\n```go\nconst (\n\tUnaryMinus UnaryOperatorSymbol = iota\n\tUnaryComplement\n\tUnarySqrt\n\tUnaryCbrt\n\tUnaryPlus\n\n\tNumUnaryOperatorSymbols\n)\n```\nUnaryExpr.Operator.Symbol\n\n```go\nfunc (i UnaryOperatorSymbol) 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 (node *UnionClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*UnionClause) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *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\tWithoutIndex bool\n}\n```\nUniqueConstraint represents UNIQUE on a column.\n\n```go\ntype UniqueConstraintTableDef struct {\n\tIndexTableDef\n\tPrimaryKey   bool\n\tWithoutIndex bool\n\tIfNotExists  bool\n\t// FormatAsIndex indicates if the constraint should be formatted as an index\n\t// definition. This is needed since indexes support syntax for things like\n\t// storage parameters and sharding, while constraints do not.\n\tFormatAsIndex bool\n}\n```\nUniqueConstraintTableDef represents a unique constraint within a CREATE TABLE statement.\n\n```go\nfunc (node *UniqueConstraintTableDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *UniqueConstraintTableDef) SetIfNotExists()\n```\nSetIfNotExists implements the ConstraintTableDef interface.\n\n```go\nfunc (node *UniqueConstraintTableDef) SetName(name Name)\n```\nSetName implements the TableDef interface.\n\n```go\ntype Unlisten struct {\n\tChannelName *UnresolvedObjectName\n\tStar        bool\n}\n```\nUnlisten represents a UNLISTEN statement.\n\n```go\nfunc (node *Unlisten) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Unlisten) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Unlisten) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Unlisten) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (node *Unlisten) String() string\n```\nString implements the Statement interface.\n\n```go\ntype UnqualifiedStar struct{}\n```\nUnqualifiedStar corresponds to a standalone '\\*' in a scalar expression.\n\n```go\nfunc (node UnqualifiedStar) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (UnqualifiedStar) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (u UnqualifiedStar) NormalizeVarName() (VarName, error)\n```\nNormalizeVarName implements the VarName interface.\n\n```go\nfunc (UnqualifiedStar) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (u UnqualifiedStar) String() string\n```\n\n```go\nfunc (expr UnqualifiedStar) TypeCheck(\n\t_ context.Context, _ *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (UnqualifiedStar) Variable()\n```\nVariable implements the VariableExpr interface.\n\n```go\nfunc (expr UnqualifiedStar) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype UnresolvedFunctionName struct {\n\t// contains filtered or unexported fields\n}\n```\nUnresolvedFunctionName is an unresolved function name.\n\n```go\nfunc MakeUnresolvedFunctionName(u *UnresolvedName) UnresolvedFunctionName\n```\nMakeUnresolvedFunctionName returns a new UnresolvedFunctionName containing the give UnresolvedName.\n\n```go\nfunc (u UnresolvedFunctionName) UnresolvedName() *UnresolvedName\n```\nUnresolvedName implements the UnresolvedRoutineName interface.\n\n```go\ntype UnresolvedName struct {\n\t// NumParts indicates the number of name parts specified, including\n\t// the star. Always 1 or greater.\n\tNumParts int\n\n\t// Star indicates the name ends with a star.\n\t// In that case, Parts below is empty in the first position.\n\tStar bool\n\n\t// Parts are the name components, in reverse order.\n\t// There are at most 4: column, table, schema, catalog/db.\n\t//\n\t// Note: NameParts has a fixed size so that we avoid a heap\n\t// allocation for the slice every time we construct an\n\t// UnresolvedName. It does imply however that Parts does not have\n\t// a meaningful \"length\"; its actual length (the number of parts\n\t// specified) is populated in NumParts above.\n\tParts NameParts\n}\n```\nUnresolvedName corresponds to an unresolved qualified name.\n\n```go\nfunc MakeUnresolvedName(args ...string) UnresolvedName\n```\nMakeUnresolvedName constructs an UnresolvedName from some strings.\n\n```go\nfunc NewUnresolvedName(args ...string) *UnresolvedName\n```\nNewUnresolvedName constructs an UnresolvedName from some strings.\n\n```go\nfunc (node *UnresolvedName) Eval(ctx context.Context, v ExprEvaluator) (Datum, error)\n```\nEval is part of the TypedExpr interface.\n\n```go\nfunc (u *UnresolvedName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *UnresolvedName) NormalizeTablePattern() (TablePattern, error)\n```\nNormalizeTablePattern resolves an UnresolvedName to either a TableName or AllTablesSelector.\n\n```go\nfunc (n *UnresolvedName) NormalizeVarName() (VarName, error)\n```\nNormalizeVarName implements the VarName interface.\n\n```go\nfunc (*UnresolvedName) ResolvedType() *types.T\n```\nResolvedType implements the TypedExpr interface.\n\n```go\nfunc (u *UnresolvedName) String() string\n```\n\n```go\nfunc (u *UnresolvedName) ToRoutineName() (RoutineName, error)\n```\nToRoutineName converts an UnresolvedName to a RoutineName.\n\n```go\nfunc (u *UnresolvedName) ToUnresolvedObjectName(idx AnnotationIdx) (UnresolvedObjectName, error)\n```\nToUnresolvedObjectName converts an UnresolvedName to an UnresolvedObjectName.\n\n```go\nfunc (expr *UnresolvedName) TypeCheck(\n\tctx context.Context, semaCtx *SemaContext, desired *types.T,\n) (TypedExpr, error)\n```\nTypeCheck implements the Expr interface.\n\n```go\nfunc (*UnresolvedName) Variable()\n```\nVariable implements the VariableExpr interface.  Although, the UnresolvedName ought to be replaced to an IndexedVar before the points the VariableExpr interface is used.\n\n```go\nfunc (expr *UnresolvedName) Walk(_ Visitor) Expr\n```\nWalk implements the Expr interface.\n\n```go\ntype UnresolvedObjectName struct {\n\t// NumParts indicates the number of name parts specified; always 1 or greater.\n\tNumParts int\n\n\t// Parts are the name components, in reverse order.\n\t// There are at most 3: object name, schema, catalog/db.\n\t//\n\t// Note: Parts has a fixed size so that we avoid a heap allocation for the\n\t// slice every time we construct an UnresolvedObjectName. It does imply\n\t// however that Parts does not have a meaningful \"length\"; its actual length\n\t// (the number of parts specified) is populated in NumParts above.\n\tParts [3]string\n\n\t// UnresolvedObjectName can be annotated with a *tree.TableName.\n\tAnnotatedNode\n}\n```\nUnresolvedObjectName is an unresolved qualified name for a database object (table, view, etc). It is like UnresolvedName but more restrictive. It should only be constructed via NewUnresolvedObjectName.\n\n```go\nfunc MakeUnresolvedObjectName(\n\tnumParts int, parts [3]string, annotationIdx AnnotationIdx,\n) (UnresolvedObjectName, error)\n```\nMakeUnresolvedObjectName creates an unresolved object name, verifying that it is well-formed.\n\n```go\nfunc NewUnresolvedObjectName(\n\tnumParts int, parts [3]string, annotationIdx AnnotationIdx,\n) (*UnresolvedObjectName, error)\n```\nNewUnresolvedObjectName creates an unresolved object name, verifying that it is well-formed.\n\n```go\nfunc (u *UnresolvedObjectName) Catalog() string\n```\nCatalog returns the catalog of the object.\n\n```go\nfunc (u *UnresolvedObjectName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (u *UnresolvedObjectName) HasExplicitCatalog() bool\n```\nHasExplicitCatalog returns whether a catalog is specified on the object.\n\n```go\nfunc (u *UnresolvedObjectName) HasExplicitSchema() bool\n```\nHasExplicitSchema returns whether a schema is specified on the object.\n\n```go\nfunc (u *UnresolvedObjectName) Object() string\n```\nObject returns the unqualified object name.\n\n```go\nfunc (u *UnresolvedObjectName) Resolved(ann *Annotations) ObjectName\n```\nResolved returns the resolved name in the annotation for this node (or nil if there isn't one).\n\n```go\nfunc (name *UnresolvedObjectName) SQLString() string\n```\nSQLString implements the ResolvableTypeReference interface.\n\n```go\nfunc (u *UnresolvedObjectName) Schema() string\n```\nSchema returns the schema of the object.\n\n```go\nfunc (u *UnresolvedObjectName) String() string\n```\n\n```go\nfunc (u *UnresolvedObjectName) ToRoutineName() RoutineName\n```\nToRoutineName converts the unresolved name to a function name.\n\n```go\nfunc (u *UnresolvedObjectName) ToTableName() TableName\n```\nToTableName converts the unresolved name to a table name.\n\n```go\nfunc (u *UnresolvedObjectName) ToTypeName() TypeName\n```\nToTypeName converts the unresolved name to a table name.\n\n```go\nfunc (u *UnresolvedObjectName) ToUnresolvedName() *UnresolvedName\n```\nToUnresolvedName converts the unresolved object name to the more general unresolved name.\n\n```go\nfunc (expr *UnresolvedObjectName) WalkTableExpr(_ Visitor) TableExpr\n```\nWalkTableExpr implements the TableExpr interface.\n\n```go\ntype UnresolvedProcedureName struct {\n\t// contains filtered or unexported fields\n}\n```\nUnresolvedProcedureName is an unresolved procedure name.\n\n```go\nfunc MakeUnresolvedProcedureName(u *UnresolvedName) UnresolvedProcedureName\n```\nMakeUnresolvedProcedureName returns a new UnresolvedProcedureName containing the give UnresolvedName.\n\n```go\nfunc (u UnresolvedProcedureName) UnresolvedName() *UnresolvedName\n```\nUnresolvedName implements the UnresolvedRoutineName interface.\n\n```go\ntype UnresolvedRoutineName interface {\n\tUnresolvedName() *UnresolvedName\n\t// contains filtered or unexported methods\n}\n```\nUnresolvedRoutineName is an unresolved function or procedure name. The two implementations of this interface are used to differentiate between the two types of routines for things like error messages.\n\n```go\ntype UnrestrictedName string\n```\nAn UnrestrictedName is a Name that does not need to be escaped when it matches a reserved keyword.\n\nIn general, an UnrestrictedName is the result of parsing an unrestricted\\_name nonterminal, which is used in the grammar where reserved keywords can be unambiguously interpreted as identifiers. When formatted, an UnrestrictedName that matches a reserved keyword thus does not need to be quoted.\n\nFor historical reasons, some unrestricted\\_name nonterminals are instead parsed as Names. The only user-visible impact of this is that we are too aggressive about quoting names in certain positions. New grammar rules should prefer to parse unrestricted\\_name nonterminals into UnrestrictedNames.\n\n```go\nfunc (u *UnrestrictedName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *UnrestrictedName) String() string\n```\n\n```go\ntype UnspecifiedObjectName struct {\n\t// contains filtered or unexported fields\n}\n```\nUnspecifiedObjectName is an object name correspond to any object type.\n\n```go\nfunc (o *UnspecifiedObjectName) FQString() string\n```\nFQString renders the table name in full, not omitting the prefix schema and catalog names. Suitable for logging, etc.\n\n```go\nfunc (o *UnspecifiedObjectName) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (o *UnspecifiedObjectName) Object() string\n```\n\n```go\nfunc (o *UnspecifiedObjectName) String() string\n```\n\n```go\nfunc (o *UnspecifiedObjectName) ToUnresolvedObjectName() *UnresolvedObjectName\n```\nToUnresolvedObjectName converts the type name to an unresolved object name. Schema and catalog are included if indicated by the ExplicitSchema and ExplicitCatalog flags.\n\n```go\ntype Unsplit struct {\n\tTableOrIndex TableIndexName\n\t// Each row contains values for the columns in the PK or index (or a prefix\n\t// of the columns).\n\tRows *Select\n\tAll  bool\n}\n```\nUnsplit represents an \\`ALTER TABLE/INDEX .. UNSPLIT AT ..\\` statement.\n\n```go\nfunc (node *Unsplit) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*Unsplit) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Unsplit) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Unsplit) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Unsplit) String() string\n```\n\n```go\ntype UnsupportedError struct {\n\tErr         error\n\tFeatureName string\n}\n```\nUnsupportedError is an error object which is returned by some unimplemented SQL statements. It is currently only used to skip over PGDUMP statements during an import.\n\n```go\nfunc (u *UnsupportedError) Cause() error\n```\nCause implements causer.\n\n```go\nfunc (u *UnsupportedError) Error() string\n```\n\n```go\nfunc (u *UnsupportedError) Unwrap() error\n```\nUnwrap implements wrapper.\n\n```go\ntype UnsupportedTypeChecker interface {\n\t// CheckType returns an error if the given type is not supported by the\n\t// current cluster version.\n\tCheckType(ctx context.Context, typ *types.T) error\n}\n```\nUnsupportedTypeChecker is used to check that a type is supported by the current cluster version. It is an interface because some packages cannot import the clusterversion package.\n\n```go\ntype Update struct {\n\tWith      *With\n\tTable     TableExpr\n\tExprs     UpdateExprs\n\tFrom      TableExprs\n\tWhere     *Where\n\tOrderBy   OrderBy\n\tLimit     *Limit\n\tReturning ReturningClause\n}\n```\nUpdate represents an UPDATE statement.\n\n```go\nfunc (node *Update) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (n *Update) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\n\n```go\nfunc (*Update) StatementTag() string\n```\nStatementTag returns a short string identifying the type of statement.\n\n```go\nfunc (*Update) StatementType() StatementType\n```\nStatementType implements the Statement interface.\n\n```go\nfunc (n *Update) String() string\n```\n\n```go\ntype UpdateExpr struct {\n\tTuple bool\n\tNames NameList\n\tExpr  Expr\n}\n```\nUpdateExpr represents an update expression.\n\n```go\nfunc (node *UpdateExpr) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype UpdateExprs []*UpdateExpr\n```\nUpdateExprs represents a list of update expressions.\n\n```go\nfunc (node *UpdateExprs) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\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 UserPriorityFromString(val string) (_ UserPriority, ok bool)\n```\nUserPriorityFromString converts a string into a UserPriority.\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) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ValidationBehavior int\n```\nValidationBehavior specifies whether or not a constraint is validated.\n\n```go\nconst (\n\t// ValidationDefault is the default validation behavior (immediate).\n\tValidationDefault ValidationBehavior = iota\n\t// ValidationSkip skips validation of any existing data.\n\tValidationSkip\n)\n```\n\n```go\ntype ValueHandler interface {\n\tLen() int\n\tNull()\n\tDate(d pgdate.Date)\n\tDatum(d Datum)\n\tBool(b bool)\n\tBytes(b []byte)\n\t// Decimal returns a pointer into the vec for in place construction.\n\tDecimal() *apd.Decimal\n\tFloat(f float64)\n\tInt16(i int16)\n\tInt32(i int32)\n\tInt(i int64)\n\tDuration(d duration.Duration)\n\tJSON(j json.JSON)\n\tString(s string)\n\tTimestampTZ(t time.Time)\n\tReset()\n}\n```\nValueHandler is an interface to allow raw types to be extracted from strings.\n\n```go\ntype ValuesClause struct {\n\tRows []Exprs\n}\n```\nValuesClause represents a VALUES clause.\n\n```go\nfunc (node *ValuesClause) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (*ValuesClause) StatementReturnType() StatementReturnType\n```\nStatementReturnType implements the Statement interface.\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 (n *ValuesClause) String() string\n```\n\n```go\ntype VarName interface {\n\tTypedExpr\n\n\t// NormalizeVarName() guarantees to return a variable name\n\t// that is not an UnresolvedName. This converts the UnresolvedName\n\t// to an AllColumnsSelector or ColumnItem as necessary.\n\tNormalizeVarName() (VarName, error)\n}\n```\nVarName occurs inside scalar expressions.\n\nImmediately after parsing, the following types can occur:\n\n  - UnqualifiedStar: a naked star as argument to a function, e.g. count(\\*), or at the top level of a SELECT clause. See also uses of StarExpr() and StarSelectExpr() in the grammar.\n\n\\- UnresolvedName: other names of the form \\`a.b....e\\` or \\`a.b...e.\\*\\`.\n\nConsumers of variable names do not like UnresolvedNames and instead expect either AllColumnsSelector or ColumnItem. Use NormalizeVarName() for this.\n\nAfter a ColumnItem is available, it should be further resolved, for this the Resolve() method should be used; see name\\_resolution.go.\n\n```go\nfunc StarExpr() VarName\n```\nStarExpr is a convenience function that represents an unqualified \"\\*\".\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 VariadicType struct {\n\tFixedTypes []*types.T\n\tVarType    *types.T\n}\n```\nVariadicType is a TypeList implementation which accepts a fixed number of arguments at the beginning and an arbitrary number of homogenous arguments at the end.\n\n```go\nfunc (v VariadicType) GetAt(i int) *types.T\n```\nGetAt is part of the TypeList interface.\n\n```go\nfunc (v VariadicType) Length() int\n```\nLength is part of the TypeList interface.\n\n```go\nfunc (v VariadicType) Match(types []*types.T) bool\n```\nMatch is part of the TypeList interface.\n\n```go\nfunc (v VariadicType) MatchAt(typ *types.T, i int) bool\n```\nMatchAt is part of the TypeList interface.\n\n```go\nfunc (VariadicType) MatchAtOid(typ *types.T, i int) bool\n```\nMatchAtIdentical is part of the TypeList interface. TODO(mgartner): This will be incorrect once we add support for variadic UDFs\n\n```go\nfunc (v VariadicType) MatchLen(l int) bool\n```\nMatchLen is part of the TypeList interface.\n\n```go\nfunc (VariadicType) MatchOid(types []*types.T) bool\n```\nMatchIdentical is part of the TypeList interface.\n\n```go\nfunc (v VariadicType) String() string\n```\n\n```go\nfunc (v VariadicType) Types() []*types.T\n```\nTypes is part of the TypeList interface.\n\n```go\ntype VectorRows struct {\n\tBatch coldata.Batch\n}\n```\nVectorRows lets us store a Batch in a tree.LiteralValuesClause.\n\n```go\nfunc (r VectorRows) Get(i, j int) Expr\n```\nGet implements the ExprContainer interface.\n\n```go\nfunc (r VectorRows) NumCols() int\n```\nNumCols implements the ExprContainer interface.\n\n```go\nfunc (r VectorRows) NumRows() int\n```\nNumRows implements the ExprContainer interface.\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 When struct {\n\tCond Expr\n\tVal  Expr\n}\n```\nWhen represents a WHEN sub-expression.\n\n```go\nfunc (node *When) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\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 NewWhere(typ string, expr Expr) *Where\n```\nNewWhere creates a WHERE or HAVING clause out of an Expr. If the expression is nil, it returns nil.\n\n```go\nfunc (node *Where) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype Window []*WindowDef\n```\nWindow represents a WINDOW clause.\n\n```go\nfunc (node *Window) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype WindowDef struct {\n\tName       Name\n\tRefName    Name\n\tPartitions Exprs\n\tOrderBy    OrderBy\n\tFrame      *WindowFrame\n}\n```\nWindowDef represents a single window definition expression.\n\n```go\nfunc OverrideWindowDef(base *WindowDef, override WindowDef) (WindowDef, error)\n```\nOverrideWindowDef implements the logic to have a base window definition which then gets augmented by a different window definition.\n\n```go\nfunc (node *WindowDef) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype WindowFrame struct {\n\tMode      treewindow.WindowFrameMode      // the mode of framing being used\n\tBounds    WindowFrameBounds               // the bounds of the frame\n\tExclusion treewindow.WindowFrameExclusion // optional frame exclusion\n}\n```\nWindowFrame represents static state of window frame over which calculations are made.\n\n```go\nfunc (f *WindowFrame) DefaultFrameExclusion() bool\n```\nDefaultFrameExclusion returns true if optional frame exclusion is omitted.\n\n```go\nfunc (f *WindowFrame) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (f *WindowFrame) IsDefaultFrame() bool\n```\nIsDefaultFrame returns whether a frame equivalent to the default frame is being used (default is RANGE UNBOUNDED PRECEDING).\n\n```go\ntype WindowFrameBound struct {\n\tBoundType  treewindow.WindowFrameBoundType\n\tOffsetExpr Expr\n}\n```\nWindowFrameBound specifies the offset and the type of boundary.\n\n```go\nfunc (node *WindowFrameBound) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *WindowFrameBound) HasOffset() bool\n```\nHasOffset returns whether node contains an offset.\n\n```go\ntype WindowFrameBounds struct {\n\tStartBound *WindowFrameBound\n\tEndBound   *WindowFrameBound\n}\n```\nWindowFrameBounds specifies boundaries of the window frame. The row at StartBound is included whereas the row at EndBound is not.\n\n```go\nfunc (node *WindowFrameBounds) HasOffset() bool\n```\nHasOffset returns whether node contains an offset in either of the bounds.\n\n```go\ntype WindowOverload interface {\n\t// Window is just a marker method so folks don't think you can just shove\n\t// anything here. It ought to be an eval.WindowOverload.\n\tWindow()\n}\n```\nWindowOverload is an opaque type which is used to box an eval.WindowOverload.\n\n```go\ntype With struct {\n\tRecursive bool\n\tCTEList   []*CTE\n}\n```\nWith represents a WITH statement.\n\n```go\nfunc (node *With) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ZoneConfigSettings struct {\n\tDiscard    bool      // True for `CONFIGURE ZONE DISCARD` stmt\n\tSetDefault bool      // True for `CONFIGURE ZONE USING DEFAULT` stmt\n\tYAMLConfig Expr      // (Deprecated) Non-empty for `CONFIGURE ZONE = '\u003c...yaml...\u003e'` or `CONFIGURE ZONE = NULL` stmt\n\tOptions    KVOptions // Non-empty for `CONFIGURE ZONE USING var_set_list` stmt\n}\n```\nZoneConfigSettings represents info needed for zone config setting.\n\n```go\nfunc (node *ZoneConfigSettings) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\ntype ZoneSpecifier struct {\n\t// Only one of NamedZone, Database or TableOrIndex may be set.\n\tNamedZone UnrestrictedName\n\tDatabase  Name\n\t// TODO(radu): TableOrIndex abuses TableIndexName: it allows for the case when\n\t// an index is not specified, in which case TableOrIndex.Index is empty.\n\tTableOrIndex TableIndexName\n\n\t// Partition is only respected when Table is set.\n\tPartition Name\n\n\t// StarIndex is true if the special `table@*` specifier is used. It indicates\n\t// that the zone configuration should be applied across all of a table's\n\t// indexes. (e.g., ALTER PARTITION ... OF INDEX \u003ctablename\u003e@*)\n\tStarIndex bool\n}\n```\nZoneSpecifier represents a reference to a configurable zone of the keyspace.\n\n```go\nfunc (node *ZoneSpecifier) Format(ctx *FmtCtx)\n```\nFormat implements the NodeFormatter interface.\n\n```go\nfunc (node *ZoneSpecifier) String() string\n```\n\n```go\nfunc (node ZoneSpecifier) TargetsIndex() bool\n```\nTargetsIndex returns whether the zone specifier targets an index.\n\n```go\nfunc (node ZoneSpecifier) TargetsPartition() bool\n```\nTargetsPartition returns whether the zone specifier targets a partition.\n\n```go\nfunc (node ZoneSpecifier) TargetsTable() bool\n```\nTargetsTable returns whether the zone specifier targets a table or a subzone within a table.\n\n```go\nfunc (node ZoneSpecifier) TelemetryName() string\n```\nTelemetryName returns a name fitting for telemetry purposes.\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/sql/sem/tree","name":"tree","synopsis":"Code generated by eval_gen.go.","isRedistributable":true}
