MCPcopy Create free account
hub / github.com/denodrivers/postgres / clientWrapper

Function clientWrapper

tests/query_client_test.ts:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 config?: ClientOptions,
24) {
25 async function clientWrapper() {
26 const client = new Client(getMainConfiguration(config));
27 try {
28 await client.connect();
29 await t(client);
30 } finally {
31 await client.end();
32 }
33 }
34
35 async function poolWrapper() {
36 const pool = new Pool(getMainConfiguration(config), 1);

Callers

nothing calls this directly

Calls 4

getMainConfigurationFunction · 0.90
connectMethod · 0.80
endMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected