export async function searchByFontFamilyName(db: DB, search: string) { return db .select({ family: table_fonts.family, }) .from(table_fonts) .where( ilike(table_fonts.family, `%${search}%`), // search: "nato" );}
Query: select "family" from "fonts" where "fonts"."family" ilike ? -- params: ["%nato%"]
D1_ERROR: near \"ilike\": syntax error at offset 66