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

Struct UnaryOp

pkg/sql/sem/tree/eval.go:68–79  ·  view source on GitHub ↗

UnaryOp is a unary operator.

Source from the content-addressed store, hash-verified

66
67// UnaryOp is a unary operator.
68type UnaryOp struct {
69 Typ *types.T
70 ReturnType *types.T
71 Fn func(*EvalContext, Datum) (Datum, error)
72
73 types TypeList
74 retType ReturnTyper
75
76 //// counter, if non-nil, should be incremented every time the
77 //// operator is type checked.
78 //counter telemetry.Counter
79}
80
81func (op *UnaryOp) params() TypeList {
82 return op.types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected