And combines all given predicates with AND between them.
(preds ...*Predicate)
| 828 | |
| 829 | // And combines all given predicates with AND between them. |
| 830 | func And(preds ...*Predicate) *Predicate { |
| 831 | p := P() |
| 832 | return p.Append(func(b *Builder) { |
| 833 | p.mayWrap(preds, b, "AND") |
| 834 | }) |
| 835 | } |
| 836 | |
| 837 | // IsTrue appends a predicate that checks if the column value is truthy. |
| 838 | func IsTrue(col string) *Predicate { |