MCPcopy Create free account
hub / github.com/dolthub/doltgresql / query

Method query

testing/postgres-client-tests/node/database.js:10–17  ·  view source on GitHub ↗
(sql, args)

Source from the content-addressed store, hash-verified

8 }
9
10 query(sql, args) {
11 return new Promise((resolve, reject) => {
12 this.client.query(sql, args, (err, rows) => {
13 if (err) return reject(err);
14 return resolve(rows);
15 });
16 });
17 }
18
19 close() {
20 this.client.end((err) => {

Callers 4

mainFunction · 0.95
pg-test.rbFile · 0.45
runTestsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected