IsFalse appends a predicate that checks if the column value is falsey.
(col string)
| 853 | |
| 854 | // IsFalse appends a predicate that checks if the column value is falsey. |
| 855 | func (p *Predicate) IsFalse(col string) *Predicate { |
| 856 | return p.Append(func(b *Builder) { |
| 857 | b.WriteString("NOT ").Ident(col) |
| 858 | }) |
| 859 | } |
| 860 | |
| 861 | // EQ returns a "=" predicate. |
| 862 | func EQ(col string, value any) *Predicate { |
no test coverage detected