porsager / postgres

Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
The Unlicense
7.38k stars 267 forks source link

Interpolation example in docs flagged as error #902

Closed pm0u closed 3 months ago

pm0u commented 3 months ago

Attempting to use

sql`select * from ${sql("table_name")}`

As noted here in the docs is flagged as an error. The same error occurs in more complex queries as well, which lead me to find this. It seems any interpolation for the table name results in a syntax error.

image
pm0u commented 3 months ago

This was due to this vscode extension, closing.