79273329

Date: 2024-12-11 22:22:55
Score: 1
Natty:
Report link

You should create something like this:

const preparedSearch = `%${search}%`;
db.execute(
  sql`SELECT * FROM items WHERE name ILIKE ${preparedSearch}`,
);

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Misael Abanto