Skip to main content

Module like

Module like 

Source
Expand description

LIKE-pattern escaping helper.

Functions§

escape_like
Escape \, %, and _ so user input matches literally inside a LIKE/ILIKE pattern. The caller still wraps the result in %…% / …% as needed — and the result stays a bind value (pass it through where_like/a placeholder as usual; never splice it into the SQL text).