(ctx Context, ex *qcode.Exp, val string)
| 363 | } |
| 364 | |
| 365 | func (d *SQLiteDialect) RenderValVar(ctx Context, ex *qcode.Exp, val string) bool { |
| 366 | if ex.Op == qcode.OpIn || ex.Op == qcode.OpNotIn { |
| 367 | ctx.WriteString(`(SELECT value FROM json_each(`) |
| 368 | ctx.AddParam(Param{Name: ex.Right.Val, Type: "json"}) |
| 369 | ctx.WriteString(`))`) |
| 370 | return true |
| 371 | } |
| 372 | return false |
| 373 | } |
| 374 | |
| 375 | func (d *SQLiteDialect) RenderLiteral(ctx Context, val string, valType qcode.ValType) { |
| 376 | switch valType { |
nothing calls this directly
no test coverage detected