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

Function onClose

packages/sql/pg/src/PgConnection.ts:2475–2480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2473
2474 const onError = (cause: Error) => failConnect(cause, "PgConnection: Failed to connect", "refused")
2475 const onClose = () =>
2476 failConnect(
2477 new Error("Connection closed unexpectedly"),
2478 "PgConnection: Connection closed during startup",
2479 "refused"
2480 )
2481
2482 const password = (): string | undefined => {
2483 if (resolvedPassword === undefined) {

Callers

nothing calls this directly

Calls 1

failConnectFunction · 0.85

Tested by

no test coverage detected