|
|
|
|
|
by hombre_fatal
417 days ago
|
|
You solve that with an execute(stmt) function that requires you to pass in a template. In Javascript, sql`where id = ${id}` is dangerously close to normal string interpolation `where id = ${id}`, and db libs that offer a sql tag have query(stmt) fns that reject strings. |
|