Skip to main content

not_ilike

Function not_ilike 

Source
pub fn not_ilike<'a, L, R>(left: L, pattern: R) -> SQL<'a, PostgresValue<'a>>
where L: ToSQL<'a, PostgresValue<'a>>, R: Into<PostgresValue<'a>>,
Expand description

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

ยงExample

use drizzle_postgres::expr::not_ilike;

let query = not_ilike(user.name, "%admin%");
// Generates: "name" NOT ILIKE '%admin%'