MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Eval

Method Eval

pkg/sql/sem/tree/expr.go:63–63  ·  view source on GitHub ↗

Eval evaluates an SQL expression. Expression evaluation is a mostly straightforward walk over the parse tree. The only significant complexity is the handling of types and implicit conversions. See binOps and cmpOps for more details. Note that expression evaluation returns an error if certain node ty

(*EvalContext)

Source from the content-addressed store, hash-verified

61 // appropriate WalkExpr. For example, Placeholder should be replace
62 // by the argument passed from the client.
63 Eval(*EvalContext) (Datum, error)
64 // ResolvedType provides the type of the TypedExpr, which is the type of Datum
65 // that the TypedExpr will return when evaluated.
66 ResolvedType() *types.T

Callers 15

EvalAsOfTimestampFunction · 0.95
normalizeMethod · 0.65
normalizeMethod · 0.65
normalizeMethod · 0.65
normalizeMethod · 0.65
normalizeMethod · 0.65
VisitPostMethod · 0.65
UnwrapDatumFunction · 0.65
mustGetValueMethod · 0.65
VisitPostMethod · 0.65
EvalMethod · 0.65
EvalMethod · 0.65

Implementers 15

UnresolvedNamepkg/sql/sem/tree/name_part.go
Tuplepkg/sql/sem/tree/expr.go
UnqualifiedStarpkg/sql/sem/tree/var_name.go
AllColumnsSelectorpkg/sql/sem/tree/var_name.go
ColumnItempkg/sql/sem/tree/var_name.go
DTuplepkg/sql/sem/tree/datum.go
DArraypkg/sql/sem/tree/datum.go
DBitArraypkg/sql/sem/tree/datum.go
DDecimalpkg/sql/sem/tree/datum.go
DCollatedStringpkg/sql/sem/tree/datum.go
DUuidpkg/sql/sem/tree/datum.go
DIPAddrpkg/sql/sem/tree/datum.go

Calls

no outgoing calls

Tested by

no test coverage detected