We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71f6cb commit 50e9acaCopy full SHA for 50e9aca
1 file changed
packages/inquire/src/Engine.ts
@@ -213,7 +213,10 @@ export default class Engine<R = unknown> {
213
* Usage:
214
* await engine.sql`SELECT * FROM table WHERE id = ${id}`;
215
*/
216
- public sql<R = unknown>(strings: string[], ...values: Value[]) {
+ public sql<R = unknown>(
217
+ strings: TemplateStringsArray|string[],
218
+ ...values: Value[]
219
+ ) {
220
const query = strings.join('?').replaceAll('`', this.dialect.q);
221
return this.query<R>(query, values);
222
}
0 commit comments