(ip, port, user, password)
| 54 | } |
| 55 | |
| 56 | async connect(ip, port, user, password) { |
| 57 | this.client = new Client({ |
| 58 | host: ip, |
| 59 | port: port, |
| 60 | user: user, |
| 61 | password: password, |
| 62 | database: 'postgres' |
| 63 | }); |
| 64 | await this.client.connect(); |
| 65 | } |
| 66 | |
| 67 | async disconnect() { |
| 68 | await this.client.end(); |