ColumnsOp appends the given predicate between 2 columns.
(col1, col2 string, op Op)
| 819 | |
| 820 | // ColumnsOp appends the given predicate between 2 columns. |
| 821 | func (p *Predicate) ColumnsOp(col1, col2 string, op Op) *Predicate { |
| 822 | return p.Append(func(b *Builder) { |
| 823 | b.Ident(col1) |
| 824 | b.WriteOp(op) |
| 825 | b.Ident(col2) |
| 826 | }) |
| 827 | } |
| 828 | |
| 829 | // And combines all given predicates with AND between them. |
| 830 | func And(preds ...*Predicate) *Predicate { |
no test coverage detected