IsTrue appends a predicate that checks if the column value is truthy.
(col string)
| 841 | |
| 842 | // IsTrue appends a predicate that checks if the column value is truthy. |
| 843 | func (p *Predicate) IsTrue(col string) *Predicate { |
| 844 | return p.Append(func(b *Builder) { |
| 845 | b.Ident(col) |
| 846 | }) |
| 847 | } |
| 848 | |
| 849 | // IsFalse appends a predicate that checks if the column value is falsey. |
| 850 | func IsFalse(col string) *Predicate { |