From c2bf26480b7e013973238d570e86afd146e41ef2 Mon Sep 17 00:00:00 2001 From: Annie Zhang Date: Tue, 24 May 2022 17:06:53 -0400 Subject: [PATCH] SQLiteDatabaseClient.queryTag --- src/sqlite.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sqlite.js b/src/sqlite.js index 46a624c0..6b26b5c1 100644 --- a/src/sqlite.js +++ b/src/sqlite.js @@ -39,8 +39,11 @@ export class SQLiteDatabaseClient { element("tbody", rows.map(r => element("tr", columns.map(c => element("td", [text(r[c])]))))) ]); } - async sql(strings, ...args) { - return this.query(strings.join("?"), args); + async sql() { + return this.query(...this.queryTag.apply(this, arguments)); + } + queryTag(strings, ...params) { + return [strings.join("?"), params]; } } Object.defineProperty(SQLiteDatabaseClient.prototype, "dialect", {