ValueLTE return a predicate for checking that a JSON value (returned by the path) is less than or equal to the given argument. sqljson.ValueLTE("a", 1, sqljson.Path("b"))
(column string, arg any, opts ...Option)
| 161 | // |
| 162 | // sqljson.ValueLTE("a", 1, sqljson.Path("b")) |
| 163 | func ValueLTE(column string, arg any, opts ...Option) *sql.Predicate { |
| 164 | return sql.P(func(b *sql.Builder) { |
| 165 | opts = normalizePG(b, arg, opts) |
| 166 | valuePath(b, column, opts...) |
| 167 | b.WriteOp(sql.OpLTE).Arg(arg) |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | // ValueContains return a predicate for checking that a JSON |
| 172 | // value (returned by the path) contains the given argument. |
searching dependent graphs…