Skip to main content

sql_like_cased

Function sql_like_cased 

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

Match a string against a SQL LIKE pattern, honoring the connection’s PRAGMA case_sensitive_like setting.

When case_sensitive is false (the default) this is identical to sql_like: ASCII case is folded. When case_sensitive is true (PRAGMA case_sensitive_like = ON) the literal portions of the pattern are matched byte-exact — wildcards (%, _) still behave the same.