query - busy indicator, canceling

This commit is contained in:
Jan Prochazka
2020-04-13 15:20:37 +02:00
parent fc98409583
commit 41322f237a
10 changed files with 88 additions and 31 deletions

View File

@@ -58,6 +58,7 @@ const driver = {
user,
password,
database,
requestTimeout: 1000 * 3600,
options: {
enableArithAbort: true,
},
@@ -150,6 +151,8 @@ const driver = {
request.on('done', handleDone);
request.on('info', handleInfo);
request.query(sql);
return request;
},
async getVersion(pool) {
const { version } = (await this.query(pool, 'SELECT @@VERSION AS version')).rows[0];