diff --git a/lib/kysely-deno-sqlite/src/deno-sqlite-driver.ts b/lib/kysely-deno-sqlite/src/deno-sqlite-driver.ts index b0d4655..adf49ab 100644 --- a/lib/kysely-deno-sqlite/src/deno-sqlite-driver.ts +++ b/lib/kysely-deno-sqlite/src/deno-sqlite-driver.ts @@ -61,13 +61,11 @@ class DenoSqliteConnection implements DatabaseConnection { } executeQuery({ sql, parameters }: CompiledQuery): Promise> { - const query = this.#db.prepareQuery(sql); + // @ts-expect-error `parameters` types are incompatible, but they should match in reality. + const rows = this.#db.queryEntries(sql, parameters); - const rows = query.allEntries(parameters as any); const { changes, lastInsertRowId } = this.#db; - query.finalize(); - return Promise.resolve({ rows: rows as O[], numAffectedRows: BigInt(changes),