ValueGTE return a predicate for checking that a JSON value (returned by the path) is greater than or equal to the given argument. sqljson.ValueGTE("a", 1, sqljson.Path("b"))
(column string, arg any, opts ...Option)
| 136 | // |
| 137 | // sqljson.ValueGTE("a", 1, sqljson.Path("b")) |
| 138 | func ValueGTE(column string, arg any, opts ...Option) *sql.Predicate { |
| 139 | return sql.P(func(b *sql.Builder) { |
| 140 | opts = normalizePG(b, arg, opts) |
| 141 | valuePath(b, column, opts...) |
| 142 | b.WriteOp(sql.OpGTE).Arg(arg) |
| 143 | }) |
| 144 | } |
| 145 | |
| 146 | // ValueLT return a predicate for checking that a JSON value |
| 147 | // (returned by the path) is less than the given argument. |
searching dependent graphs…