LenLT return a predicate for checking that an array length of a JSON (returned by the path) is less than the given argument. sqljson.LenLT("a", 1, sqljson.Path("b"))
(column string, size int, opts ...Option)
| 321 | // |
| 322 | // sqljson.LenLT("a", 1, sqljson.Path("b")) |
| 323 | func LenLT(column string, size int, opts ...Option) *sql.Predicate { |
| 324 | return sql.P(func(b *sql.Builder) { |
| 325 | lenPath(b, column, opts...) |
| 326 | b.WriteOp(sql.OpLT).Arg(size) |
| 327 | }) |
| 328 | } |
| 329 | |
| 330 | // LenLTE return a predicate for checking that an array length |
| 331 | // of a JSON (returned by the path) is less than or equal to |
searching dependent graphs…