(ctx Context, table, col string, path []string)
| 243 | } |
| 244 | |
| 245 | func (d *SQLiteDialect) RenderJSONPath(ctx Context, table, col string, path []string) { |
| 246 | // SQLite JSON path syntax: json_extract(column, '$.path1.path2') |
| 247 | ctx.WriteString(`json_extract(`) |
| 248 | ctx.ColWithTable(table, col) |
| 249 | ctx.WriteString(`, '$.`) |
| 250 | for i, pathElement := range path { |
| 251 | if i > 0 { |
| 252 | ctx.WriteString(`.`) |
| 253 | } |
| 254 | ctx.WriteString(pathElement) |
| 255 | } |
| 256 | ctx.WriteString(`')`) |
| 257 | } |
| 258 | |
| 259 | func (d *SQLiteDialect) RenderList(ctx Context, ex *qcode.Exp) { |
| 260 | ctx.WriteString(`(`) |
nothing calls this directly
no test coverage detected