baja-lite 1.7.6 → 1.7.7
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/package.json +1 -1
- package/sql.js +2 -1
package/package.json
CHANGED
package/sql.js
CHANGED
|
@@ -409,7 +409,8 @@ export class Mysql {
|
|
|
409
409
|
}
|
|
410
410
|
async keepAlive() {
|
|
411
411
|
const connection = await this.createConnection(SyncMode.Async);
|
|
412
|
-
await connection?.query(SyncMode.Async, 'SELECT 1 FROM DUAL');
|
|
412
|
+
const data = await connection?.query(SyncMode.Async, 'SELECT 1 FROM DUAL');
|
|
413
|
+
globalThis[_LoggerService].debug?.('keepAlive->', data?.[0]?.[1]);
|
|
413
414
|
setTimeout(() => this.keepAlive(), globalThis[_MysqlKeepAliveTime] ?? 30000);
|
|
414
415
|
}
|
|
415
416
|
createConnection(sync) {
|