masterrecord 0.3.25 → 0.3.26
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/SQLLiteEngine.js
CHANGED
|
@@ -1251,11 +1251,10 @@ class SQLLiteEngine {
|
|
|
1251
1251
|
* Close database connection
|
|
1252
1252
|
* Required for proper cleanup of better-sqlite3 native bindings
|
|
1253
1253
|
*/
|
|
1254
|
-
close() {
|
|
1255
|
-
|
|
1256
|
-
this.db.close()
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1254
|
+
async close() {
|
|
1255
|
+
return Promise.resolve(
|
|
1256
|
+
this.db ? (this.db.close(), console.log('SQLite database closed')) : null
|
|
1257
|
+
);
|
|
1259
1258
|
}
|
|
1260
1259
|
}
|
|
1261
1260
|
|
package/context.js
CHANGED
|
@@ -20,7 +20,7 @@ const modelBuilder = require('./Entity/entityModelBuilder');
|
|
|
20
20
|
const query = require('masterrecord/QueryLanguage/queryMethods');
|
|
21
21
|
const tools = require('./Tools');
|
|
22
22
|
const SQLLiteEngine = require('masterrecord/SQLLiteEngine');
|
|
23
|
-
const MySQLEngine = require('masterrecord/
|
|
23
|
+
const MySQLEngine = require('masterrecord/mySQLEngine');
|
|
24
24
|
const PostgresEngine = require('masterrecord/postgresEngine');
|
|
25
25
|
const insertManager = require('./insertManager');
|
|
26
26
|
const deleteManager = require('./deleteManager');
|
|
@@ -28,7 +28,7 @@ const globSearch = require('glob');
|
|
|
28
28
|
const fs = require('fs');
|
|
29
29
|
const path = require('path');
|
|
30
30
|
const appRoot = require('app-root-path');
|
|
31
|
-
const MySQLAsyncClient = require('masterrecord/
|
|
31
|
+
const MySQLAsyncClient = require('masterrecord/mySQLConnect');
|
|
32
32
|
const PostgresClient = require('masterrecord/postgresSyncConnect');
|
|
33
33
|
const QueryCache = require('./Cache/QueryCache');
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "masterrecord",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
|
|
5
5
|
"main": "MasterRecord.js",
|
|
6
6
|
"bin": {
|
|
File without changes
|
|
File without changes
|