valuePath writes to the given SQL builder the JSON path for getting the value of a given JSON path. Use sqljson.ValuePath for using a JSON value as an argument.
(b *sql.Builder, column string, opts ...Option)
| 505 | // getting the value of a given JSON path. |
| 506 | // Use sqljson.ValuePath for using a JSON value as an argument. |
| 507 | func valuePath(b *sql.Builder, column string, opts ...Option) { |
| 508 | path := identPath(column, opts...) |
| 509 | path.value(b) |
| 510 | } |
| 511 | |
| 512 | // value writes the path for getting the JSON value. |
| 513 | func (p *PathOptions) value(b *sql.Builder) { |
no test coverage detected
searching dependent graphs…