ValueNEQ return a predicate for checking that a JSON value (returned by the path) is not equal to the given argument. sqljson.ValueNEQ("a", 1, sqljson.Path("b"))
(column string, arg any, opts ...Option)
| 111 | // |
| 112 | // sqljson.ValueNEQ("a", 1, sqljson.Path("b")) |
| 113 | func ValueNEQ(column string, arg any, opts ...Option) *sql.Predicate { |
| 114 | return sql.P(func(b *sql.Builder) { |
| 115 | opts = normalizePG(b, arg, opts) |
| 116 | valuePath(b, column, opts...) |
| 117 | b.WriteOp(sql.OpNEQ).Arg(arg) |
| 118 | }) |
| 119 | } |
| 120 | |
| 121 | // ValueGT return a predicate for checking that a JSON value |
| 122 | // (returned by the path) is greater than the given argument. |
searching dependent graphs…