Skip to content
Merged
Changes from 1 commit
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
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