ValueGT return a predicate for checking that a JSON value (returned by the path) is greater than the given argument. sqljson.ValueGT("a", 1, sqljson.Path("b"))
(column string, arg any, opts ...Option)
| 123 | // |
| 124 | // sqljson.ValueGT("a", 1, sqljson.Path("b")) |
| 125 | func ValueGT(column string, arg any, opts ...Option) *sql.Predicate { |
| 126 | return sql.P(func(b *sql.Builder) { |
| 127 | opts = normalizePG(b, arg, opts) |
| 128 | valuePath(b, column, opts...) |
| 129 | b.WriteOp(sql.OpGT).Arg(arg) |
| 130 | }) |
| 131 | } |
| 132 | |
| 133 | // ValueGTE return a predicate for checking that a JSON value |
| 134 | // (returned by the path) is greater than or equal to the given |
searching dependent graphs…