Update Fix

This commit is contained in:
2026-03-15 12:30:40 +01:00
parent 311ba5e7f3
commit 50be8e25f3
176 changed files with 4075 additions and 3013 deletions

View File

@@ -66,6 +66,12 @@ class PromiseConnection extends EventEmitter {
});
}
async [Symbol.asyncDispose]() {
if (!this.connection._closing) {
await this.end();
}
}
beginTransaction() {
const c = this.connection;
const localErr = new Error();

View File

@@ -85,6 +85,12 @@ class PromisePool extends EventEmitter {
});
});
}
async [Symbol.asyncDispose]() {
if (!this.pool._closed) {
await this.end();
}
}
}
(function (functionsToWrap) {

View File

@@ -14,6 +14,10 @@ class PromisePoolConnection extends PromiseConnection {
arguments
);
}
async [Symbol.asyncDispose]() {
this.release();
}
}
module.exports = PromisePoolConnection;