/**
 * Escape backslash, % and _ so they are treated as literals in a LIKE pattern.
 * Use with LIKE ? ESCAPE '\' in SQL.
 */
export function escapeLike(s) {
  return s.replace(/\\/g, '\\\\').replace(/%/g, '\\%').replace(/_/g, '\\_')
}
