Postgresql – Escape LIKE parameters containing wildcard characters like % (and _)
In GORM documentation there is an example how to use LIKE conditions: // LIKE db.Where("name LIKE ?", "%jin%").Find(&users) // SELECT * FROM users WHERE name LIKE '%jin%'; The problem that I have with this approach is that if jin is…