Skip to main content

ilike

Function ilike 

Source
pub fn 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 LIKE pattern matching (PostgreSQL-specific)

ยงExample

use drizzle_postgres::expr::ilike;

let query = ilike(user.name, "%john%");
// Generates: "name" ILIKE '%john%'