LenGTE return a predicate for checking that an array length of a JSON (returned by the path) is greater than or equal to the given argument. sqljson.LenGTE("a", 1, sqljson.Path("b"))
(column string, size int, opts ...Option)
| 309 | // |
| 310 | // sqljson.LenGTE("a", 1, sqljson.Path("b")) |
| 311 | func LenGTE(column string, size int, opts ...Option) *sql.Predicate { |
| 312 | return sql.P(func(b *sql.Builder) { |
| 313 | lenPath(b, column, opts...) |
| 314 | b.WriteOp(sql.OpGTE).Arg(size) |
| 315 | }) |
| 316 | } |
| 317 | |
| 318 | // LenLT return a predicate for checking that an array length |
| 319 | // of a JSON (returned by the path) is less than the given |
searching dependent graphs…