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

Function handOut

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

Source from the content-addressed store, hash-verified

227 })
228
229 const handOut = (connection: PgConnection.PgConnection) =>
230 connects.has(connection) ? Effect.as(reportConnect(connection), connection) : Effect.succeed(connection)
231
232 // Assigned below, once the pool exists. `acquire` only runs when the pool
233 // opens a connection, which is always after that.

Callers

nothing calls this directly

Calls 3

reportConnectFunction · 0.85
hasMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected