MCPcopy Create free account
hub / github.com/cmoog/vscode-sql-notebook / postgresPool

Function postgresPool

src/driver.ts:259–269  ·  view source on GitHub ↗
(pool: pg.Pool)

Source from the content-addressed store, hash-verified

257}
258
259function postgresPool(pool: pg.Pool): Pool {
260 return {
261 async getConnection(): Promise<Conn> {
262 const conn = await pool.connect();
263 return postgresConn(conn);
264 },
265 end() {
266 pool.end();
267 },
268 };
269}
270
271function postgresConn(conn: pg.PoolClient): Conn {
272 return {

Callers 1

createPostgresPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected