Contains is a helper predicate that checks substring using the LIKE predicate.
(col, substr string)
| 1321 | |
| 1322 | // Contains is a helper predicate that checks substring using the LIKE predicate. |
| 1323 | func (p *Predicate) Contains(col, substr string) *Predicate { |
| 1324 | return p.escapedLike(col, "%", "%", substr) |
| 1325 | } |
| 1326 | |
| 1327 | // ContainsFold is a helper predicate that checks substring using the LIKE predicate with case-folding. |
| 1328 | func ContainsFold(col, sub string) *Predicate { return P().ContainsFold(col, sub) } |