ms sql analyse - table list

This commit is contained in:
Jan Prochazka
2020-01-19 21:01:48 +01:00
parent c819aac098
commit 69322a4e41
14 changed files with 209 additions and 51 deletions

View File

@@ -1,8 +1,8 @@
const { Client } = require('pg');
module.exports = {
async connect({ server, port, user, password }) {
const client = new Client({ host: server, port, user, password, database: 'postgres' });
async connect({ server, port, user, password, database }) {
const client = new Client({ host: server, port, user, password, database: database || 'postgres' });
await client.connect();
return client;
},