Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqlite",
"version": "4.2.1",
"version": "5.0.0",
"description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions src/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,11 @@ export class Database<
* Comments are not allowed and will lead to runtime errors.
*
* @param {string} sql The SQL query to run.
* @param {any} [params, ...] Same as the `params` parameter of `all`
* @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback
*/
exec (sql: ISqlite.SqlType, ...params: any[]): Promise<void> {
exec (sql: ISqlite.SqlType): Promise<void> {
return new Promise((resolve, reject) => {
const sqlObj = toSqlParams(sql, params)
const sqlObj = toSqlParams(sql)

this.db.exec(sqlObj.sql, err => {
if (err) {
Expand Down