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

Function main

testing/postgres-client-tests/node/index.js:187–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185];
186
187async function main() {
188 const database = new Database(getConfig());
189
190 await Promise.all(
191 tests.map((test) => {
192 return database
193 .query(test.q)
194 .then((data) => {
195 assertEqualRows(test, data);
196 })
197 .catch((err) => {
198 console.error(err);
199 process.exit(1);
200 });
201 })
202 );
203
204 database.close();
205 process.exit(0);
206}
207
208main();

Callers 1

index.jsFile · 0.70

Calls 4

queryMethod · 0.95
closeMethod · 0.95
getConfigFunction · 0.90
assertEqualRowsFunction · 0.90

Tested by

no test coverage detected