mm_sqlite 1.1.8 → 1.1.9

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -242,7 +242,7 @@ Sqlite.prototype.getConn = async function (timeout) {
242
242
  timeout = timeout || this.config.acquire_timeout || this.config.connect_timeout || 20000;
243
243
 
244
244
  if (this._status !== 'connected') {
245
- throw new Error('数据库连接未建立');
245
+ await this.open(timeout);
246
246
  }
247
247
 
248
248
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_sqlite",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "高性能SQLite数据库操作模块,提供与mm_mysql完全兼容的API接口,支持异步操作、事务处理和批量操作",
5
5
  "main": "index.js",
6
6
  "scripts": {