Avoiding SQL Injection with Parameterized Queries
How to provide parameters when executing SQL? I have not found any relevant tests or cases, asked claude to use template strings.But won't this lead to SQL injection risks?Like such code
const userId = "1'; DROP TABLE users; --"
yield* sql`SELECT * FROM users WHERE id = ${userId}`