Skip to main content

sql_like

Function sql_like 

Source
pub fn sql_like(pattern: &str, text: &str, escape: Option<char>) -> bool
Expand description

Match a string against a SQL LIKE pattern with SQLite semantics.

  • % matches zero or more characters.
  • _ matches exactly one character.
  • Case-insensitive for ASCII A-Z only (no Unicode case folding without ICU).
  • escape optionally specifies the escape character for literal %/_.