mm_sqlite 1.5.0 → 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.
- package/index.js +2 -0
- package/package.json +5 -5
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.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "高性能SQLite数据库操作模块,提供与mm_mysql完全兼容的API接口,支持异步操作、事务处理和批量操作",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"node": ">=14.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"better-sqlite3": "^13.0.
|
|
42
|
-
"mm_expand": "^2.
|
|
41
|
+
"better-sqlite3": "^13.0.3",
|
|
42
|
+
"mm_expand": "^2.5.1",
|
|
43
43
|
"sqlstring": "^2.3.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"eslint": "^10.8.
|
|
47
|
-
"eslint-plugin-jsdoc": "^
|
|
46
|
+
"eslint": "^10.8.1",
|
|
47
|
+
"eslint-plugin-jsdoc": "^64.0.1",
|
|
48
48
|
"mm_eslint": "^1.7.5"
|
|
49
49
|
}
|
|
50
50
|
}
|