MCPcopy Create free account
hub / github.com/PostHog/duckgres / main

Function main

scripts/client-compat/clients/node-postgres/test_node_postgres.js:339–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337// --- main ---
338
339async function main() {
340 await waitForDuckgres();
341
342 await testConnectionProperties();
343 await testSharedQueries();
344 await testDdlDml();
345 await testPreparedStatements();
346 await testResultMetadata();
347
348 console.log(`\n${"=".repeat(50)}`);
349 console.log(`Results: ${passed} passed, ${failed} failed`);
350 if (errors.length > 0) {
351 console.log("\nFailures:");
352 for (const [name, reason] of errors) {
353 console.log(` - ${name}: ${reason}`);
354 }
355 }
356 console.log("=".repeat(50));
357
358 process.exit(failed > 0 ? 1 : 0);
359}
360
361main().catch((e) => {
362 console.error("Fatal error:", e);

Callers 1

Calls 6

testDdlDmlFunction · 0.85
testPreparedStatementsFunction · 0.85
testResultMetadataFunction · 0.85
waitForDuckgresFunction · 0.70
testConnectionPropertiesFunction · 0.70
testSharedQueriesFunction · 0.70

Tested by

no test coverage detected