mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 05:36:00 +00:00
ms sql analyse - table list
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user