LenGT return a predicate for checking that an array length of a JSON (returned by the path) is greater than the given argument. sqljson.LenGT("a", 1, sqljson.Path("b"))
(column string, size int, opts ...Option)
| 297 | // |
| 298 | // sqljson.LenGT("a", 1, sqljson.Path("b")) |
| 299 | func LenGT(column string, size int, opts ...Option) *sql.Predicate { |
| 300 | return sql.P(func(b *sql.Builder) { |
| 301 | lenPath(b, column, opts...) |
| 302 | b.WriteOp(sql.OpGT).Arg(size) |
| 303 | }) |
| 304 | } |
| 305 | |
| 306 | // LenGTE return a predicate for checking that an array length |
| 307 | // of a JSON (returned by the path) is greater than or equal to |
searching dependent graphs…