LenPath writes to the given SQL builder the JSON path for getting the length of a given JSON path. sqljson.LenPath(b, Path("a", "b", "[1]", "c"))
(b *sql.Builder, column string, opts ...Option)
| 370 | // |
| 371 | // sqljson.LenPath(b, Path("a", "b", "[1]", "c")) |
| 372 | func lenPath(b *sql.Builder, column string, opts ...Option) { |
| 373 | path := identPath(column, opts...) |
| 374 | path.length(b) |
| 375 | } |
| 376 | |
| 377 | // Append writes to the given SQL builder the SQL command for appending JSON values |
| 378 | // into the array, optionally defined as a key. Note, the generated SQL will use the |