integration tests WIP

This commit is contained in:
Jan Prochazka
2021-05-27 09:26:37 +02:00
parent 0413075af6
commit 54fec7fd6d
7 changed files with 74 additions and 19 deletions

View File

@@ -63,6 +63,9 @@ const driver = {
return tediousConnect(conn);
},
async close(pool) {
return pool.close();
},
async queryCore(pool, sql, options) {
if (pool._connectionType == 'msnodesqlv8') {
return nativeQueryCore(pool, sql, options);

View File

@@ -113,6 +113,9 @@ const drivers = driverBases.map(driverBase => ({
await client.connect();
return client;
},
async close(pool) {
return pool.end();
},
async query(client, sql) {
if (sql == null) {
return {