ValueLT return a predicate for checking that a JSON value (returned by the path) is less than the given argument. sqljson.ValueLT("a", 1, sqljson.Path("b"))
(column string, arg any, opts ...Option)
| 148 | // |
| 149 | // sqljson.ValueLT("a", 1, sqljson.Path("b")) |
| 150 | func ValueLT(column string, arg any, opts ...Option) *sql.Predicate { |
| 151 | return sql.P(func(b *sql.Builder) { |
| 152 | opts = normalizePG(b, arg, opts) |
| 153 | valuePath(b, column, opts...) |
| 154 | b.WriteOp(sql.OpLT).Arg(arg) |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | // ValueLTE return a predicate for checking that a JSON value |
| 159 | // (returned by the path) is less than or equal to the given |
searching dependent graphs…