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", {