MCPcopy Create free account
hub / github.com/Effect-TS/effect / run

Function run

packages/sql/pg/src/PgPool.ts:417–418  ·  view source on GitHub ↗
(connection: PgConnection.PgConnection)

Source from the content-addressed store, hash-verified

415 return Effect.scoped(Effect.flatMap(get, f))
416 }
417 const run = (connection: PgConnection.PgConnection) =>
418 connects.has(connection) ? Effect.andThen(reportConnect(connection), f(connection)) : f(connection)
419 if (connectionTTL === undefined) {
420 return borrow("any", (leave) =>
421 Pool.use(pool, (connection) => {

Callers 13

useFunction · 0.70
layerFunction · 0.70
layerFunction · 0.50
batchFunction · 0.50
SteppedSchedulerClass · 0.50
assertFailureTaggedFunction · 0.50
lifecycleFunction · 0.50
assertThrowsTaggedFunction · 0.50
thrownCodecErrorFunction · 0.50
assertThrowsTaggedFunction · 0.50
Migrator.test.tsFile · 0.50
layerFunction · 0.50

Calls 3

reportConnectFunction · 0.85
hasMethod · 0.65
fFunction · 0.50

Tested by 4

assertFailureTaggedFunction · 0.40
assertThrowsTaggedFunction · 0.40
thrownCodecErrorFunction · 0.40
assertThrowsTaggedFunction · 0.40