```
const users = await sql`
select
name,
age
from users
where age > ${ age }
`
```
Do template literals like this in JS work differently than just straight up string interpolation? As a rails dev this set off alarm bells.
Do template literals like this in JS work differently than just straight up string interpolation? As a rails dev this set off alarm bells.
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [2] https://github.com/porsager/postgres#await-sql---result
this is great! Can't wait to give a try.