Support non-string template tag queries

This issue has been tracked since 2022-09-11.

TL;DR - support the following syntax:

const result = await conn.query("SELECT id FROM users WHERE first_name = $1", [firstName])

Currently, many libraries don't come with an SQL template tag out of the box (such as pg, sequelize, etc), and some devs may prefer using normal strings with parameterized variables ($1, $2, ...) with an array of values.

We should probably support that kind of syntax as well.

Newbie012 wrote this answer on 2022-10-06

I don't know if I should support this kind of syntax. While it may increase the plugin's adoption, it feels like a step back. I'll keep this issue open for now for any future objections.

More Details About Repo
Owner Name ts-safeql
Repo Name safeql
Full Name ts-safeql/safeql
Language TypeScript
Created Date 2022-09-08
Updated Date 2023-03-16
Star Count 795
Watcher Count 5
Fork Count 14
Issue Count 7


Issue Title Created Date Updated Date