mm_sqlite 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -173,6 +173,7 @@ SQLite.prototype.run = async function (sql, params = [], timeout = 30000) {
173
173
  throw new TypeError('timeout must be number');
174
174
  }
175
175
 
176
+ // 注意:同 scope 下为单例共享,this.error/this.sql 并发时以最后一次写入为准
176
177
  this.error = null;
177
178
  this.sql = '';
178
179
  let conn = null;
@@ -219,6 +220,7 @@ SQLite.prototype.exec = async function (sql, params = [], timeout) {
219
220
  throw new TypeError('timeout must be number');
220
221
  }
221
222
 
223
+ // 注意:同 scope 下为单例共享,this.error/this.sql 并发时以最后一次写入为准
222
224
  this.error = null;
223
225
  this.sql = '';
224
226
  let conn = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_sqlite",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "高性能SQLite数据库操作模块,提供与mm_mysql完全兼容的API接口,支持异步操作、事务处理和批量操作",
5
5
  "main": "index.js",
6
6
  "scripts": {