HasSuffix is a helper predicate that checks suffix using the LIKE predicate.
(col, suffix string)
| 1278 | |
| 1279 | // HasSuffix is a helper predicate that checks suffix using the LIKE predicate. |
| 1280 | func (p *Predicate) HasSuffix(col, suffix string) *Predicate { |
| 1281 | return p.escapedLike(col, "%", "", suffix) |
| 1282 | } |
| 1283 | |
| 1284 | // HasSuffixFold is a helper predicate that checks suffix using the ILIKE predicate. |
| 1285 | func HasSuffixFold(col, suffix string) *Predicate { return P().HasSuffixFold(col, suffix) } |