WithCurrentDB sets the current database name for the `EvalContext`.
(db string)
| 136 | |
| 137 | // WithCurrentDB sets the current database name for the `EvalContext`. |
| 138 | func WithCurrentDB(db string) EvalCtxOption { |
| 139 | return func(s *evalCtxState) { |
| 140 | s.currentDB = db |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // WithCurrentTime sets the current time for the `EvalContext`. |
| 145 | func WithCurrentTime(fn func() (time.Time, error)) EvalCtxOption { |
no outgoing calls