(ctx Context, ex *qcode.Exp, table string, pid int32)
| 440 | } |
| 441 | |
| 442 | func (d *SQLiteDialect) RenderValArrayColumn(ctx Context, ex *qcode.Exp, table string, pid int32) { |
| 443 | ctx.WriteString(`SELECT value FROM json_each(`) |
| 444 | t := table |
| 445 | if pid >= 0 { |
| 446 | t = fmt.Sprintf("%s_%d", table, pid) |
| 447 | } |
| 448 | ctx.ColWithTable(t, ex.Right.Col.Name) |
| 449 | ctx.WriteString(`)`) |
| 450 | } |
| 451 | |
| 452 | func (d *SQLiteDialect) RenderArray(ctx Context, items []string) { |
| 453 | ctx.WriteString(`json_array(`) |
nothing calls this directly
no test coverage detected