WithCurrentTime sets the current time for the `EvalContext`.
(fn func() (time.Time, error))
| 143 | |
| 144 | // WithCurrentTime sets the current time for the `EvalContext`. |
| 145 | func WithCurrentTime(fn func() (time.Time, error)) EvalCtxOption { |
| 146 | intest.AssertNotNil(fn) |
| 147 | return func(s *evalCtxState) { |
| 148 | s.currentTime = &timeOnce{timeFn: fn} |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // WithMaxAllowedPacket sets the value of the 'max_allowed_packet' system variable. |
| 153 | func WithMaxAllowedPacket(size uint64) EvalCtxOption { |