@ccci/micro-server 1.0.24 → 1.0.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/dist/index.js
CHANGED
|
@@ -87563,6 +87563,9 @@ class DatabaseConnector {
|
|
|
87563
87563
|
static sync(modelName, force = false) {
|
|
87564
87564
|
DatabaseConnector.connection.models[modelName].sync({ force });
|
|
87565
87565
|
}
|
|
87566
|
+
static disconnect() {
|
|
87567
|
+
DatabaseConnector.connection.close();
|
|
87568
|
+
}
|
|
87566
87569
|
}
|
|
87567
87570
|
|
|
87568
87571
|
// src/utils/RouterFactory.ts
|
|
@@ -19,5 +19,6 @@ export default class DatabaseConnector {
|
|
|
19
19
|
connect(connection: Sequelize): Promise<void>;
|
|
20
20
|
static getModel(modelName: string): ModelStatic<Model>;
|
|
21
21
|
static sync(modelName: string, force?: boolean): void;
|
|
22
|
+
static disconnect(): void;
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=DatabaseConnector.d.ts.map
|