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

Function WithBlockEncryptionMode

pkg/expression/exprstatic/exprctx.go:77–81  ·  view source on GitHub ↗

WithBlockEncryptionMode sets the block encryption mode for `ExprContext`.

(mode string)

Source from the content-addressed store, hash-verified

75
76// WithBlockEncryptionMode sets the block encryption mode for `ExprContext`.
77func WithBlockEncryptionMode(mode string) ExprCtxOption {
78 return func(s *exprCtxState) {
79 s.blockEncryptionMode = mode
80 }
81}
82
83// WithSysDateIsNow sets the sysdate is now for `ExprContext`.
84func WithSysDateIsNow(now bool) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getExprCtxOptionsForTestFunction · 0.68