Comparing version 4.0.23 to 4.0.24
@@ -125,5 +125,6 @@ /// <reference types="./vendor-typings/sqlite3" /> | ||
* @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): Promise<void>; | ||
exec(sql: ISqlite.SqlType, ...params: any[]): Promise<void>; | ||
/** | ||
@@ -130,0 +131,0 @@ * Prepares the SQL statement and optionally binds the specified parameters. |
@@ -205,7 +205,8 @@ "use strict"; | ||
* @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) { | ||
exec(sql, ...params) { | ||
return new Promise((resolve, reject) => { | ||
const sqlObj = strings_1.toSqlParams(sql); | ||
const sqlObj = strings_1.toSqlParams(sql, params); | ||
this.db.exec(sqlObj.sql, err => { | ||
@@ -212,0 +213,0 @@ if (err) { |
@@ -0,1 +1,7 @@ | ||
## 4.0.24 - Sun Mar 06 2022 20:12:24 | ||
**Contributor:** fresheneesz | ||
- Updating exec to support passed in parameters like the other functions do. (#155) | ||
## 4.0.23 - Mon May 24 2021 21:17:44 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "sqlite", | ||
"version": "4.0.23", | ||
"version": "4.0.24", | ||
"description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94872
1227