WithCharset sets the charset and collation for `ExprContext`.
(charset, collation string)
| 60 | |
| 61 | // WithCharset sets the charset and collation for `ExprContext`. |
| 62 | func WithCharset(charset, collation string) ExprCtxOption { |
| 63 | return func(s *exprCtxState) { |
| 64 | s.charset = charset |
| 65 | s.collation = collation |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // WithDefaultCollationForUTF8MB4 sets the default collation for utf8mb4 for `ExprContext`. |
| 70 | func WithDefaultCollationForUTF8MB4(collation string) ExprCtxOption { |
no outgoing calls