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

Function errorResponse

packages/sql/pg/test/PgConnection.test.ts:37–37  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

35}
36
37const errorResponse = (code: string) => backendMessage("E", Buffer.from(`SFATAL\0C${code}\0Msecret-server-msg\0\0`))
38
39describe("PgConnection config", () => {
40 it.effect("rejects sub-second keepalive before connecting", () =>

Callers 1

Calls 2

fromMethod · 0.80
backendMessageFunction · 0.70

Tested by

no test coverage detected