MCPcopy
hub / github.com/pingcap/tidb / EvalContext

Struct EvalContext

pkg/expression/exprstatic/evalctx.go:218–221  ·  view source on GitHub ↗

EvalContext implements `EvalContext` to provide a static context for expression evaluation. The "static" means comparing with `EvalContext`, its internal state does not relay on the session or other complex contexts that keeps immutable for most fields.

Source from the content-addressed store, hash-verified

216// The "static" means comparing with `EvalContext`, its internal state does not relay on the session or other
217// complex contexts that keeps immutable for most fields.
218type EvalContext struct {
219 id uint64
220 evalCtxState
221}
222
223// NewEvalContext creates a new `EvalContext` with the given options.
224func NewEvalContext(opt ...EvalCtxOption) *EvalContext {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected