LenNEQ return a predicate for checking that an array length of a JSON (returned by the path) is not equal to the given argument. sqljson.LenEQ("a", 1, sqljson.Path("b"))
(column string, size int, opts ...Option)
| 285 | // |
| 286 | // sqljson.LenEQ("a", 1, sqljson.Path("b")) |
| 287 | func LenNEQ(column string, size int, opts ...Option) *sql.Predicate { |
| 288 | return sql.P(func(b *sql.Builder) { |
| 289 | lenPath(b, column, opts...) |
| 290 | b.WriteOp(sql.OpNEQ).Arg(size) |
| 291 | }) |
| 292 | } |
| 293 | |
| 294 | // LenGT return a predicate for checking that an array length |
| 295 | // of a JSON (returned by the path) is greater than the given |