possibly have to write support and tell them your business case, get an enterprise / business plan o
possibly have to write support and tell them your business case, get an enterprise / business plan or something like that
like works but ilike doesn't

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 66likeconst insertedOptionValues = await c.env.DB.prepare(`INSERT INTO optionValues (optionId, valueName) VALUES (?, ?), (?, ?), (? ,? )`)
.bind(optionId, valueName[0], optionId, valueName[1], optionId, valueName[2])
.run();const ps = c.env.DB.prepare(`INSERT INTO optionValues (optionId, valueName) VALUES (?, ?)`);
const queries = [];
for(const row of rows) {
queries.push(ps.bind(...row));
}
await c.env.DB.batch(queries);