Skip to main content

not_ilike

Function not_ilike 

Source
pub fn not_ilike<'a, E, P>(
    expr: E,
    pattern: P,
) -> SQLExpr<'a, PostgresValue<'a>, Boolean, NonNull, Scalar>
where E: Expr<'a, PostgresValue<'a>>, P: Into<PostgresValue<'a>>,
Expand description

Case-insensitive NOT LIKE pattern matching (PostgreSQL-specific)

ยงExample

let name = SQL::<PostgresValue>::raw("name");
let cond = not_ilike(name, "%admin%");
assert!(cond.to_sql().sql().contains("NOT ILIKE"));