mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
correctly close idle connections #920
This commit is contained in:
@@ -67,8 +67,10 @@ const drivers = driverBases.map(driverBase => ({
|
||||
}
|
||||
return dbhan;
|
||||
},
|
||||
async close(dbhan) {
|
||||
return dbhan.client.close();
|
||||
close(dbhan) {
|
||||
return new Promise(resolve => {
|
||||
dbhan.client.end(resolve);
|
||||
});
|
||||
},
|
||||
query(dbhan, sql, options) {
|
||||
if (sql == null) {
|
||||
|
||||
Reference in New Issue
Block a user