@niledatabase/server 3.0.0-alpha.53 → 3.0.0-alpha.55
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -861,6 +861,9 @@ var DBManager = class {
|
|
|
861
861
|
const { info } = Logger(config, "[DBManager]");
|
|
862
862
|
info(`Clearing all connections ${this.connections.size}`);
|
|
863
863
|
this.cleared = true;
|
|
864
|
+
this.connections.forEach((connection) => {
|
|
865
|
+
connection.shutdown();
|
|
866
|
+
});
|
|
864
867
|
this.connections.clear();
|
|
865
868
|
};
|
|
866
869
|
};
|
|
@@ -2339,6 +2342,9 @@ var Server = class {
|
|
|
2339
2342
|
get db() {
|
|
2340
2343
|
return this.manager.getConnection(this.config);
|
|
2341
2344
|
}
|
|
2345
|
+
clearConnections() {
|
|
2346
|
+
this.manager.clear(this.config);
|
|
2347
|
+
}
|
|
2342
2348
|
/**
|
|
2343
2349
|
* A convenience function that applies a config and ensures whatever was passed is set properly
|
|
2344
2350
|
*/
|