MCPcopy Create free account
hub / github.com/apecloud/myduckserver / connect

Method connect

compatibility/pg/node/pg_test.js:56–65  ·  view source on GitHub ↗
(ip, port, user, password)

Source from the content-addressed store, hash-verified

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();

Callers 1

pg_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected