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

Function bindEffect

packages/sql/pg/benchmark/PgCodec.ts:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92// comparison the type-encode table cannot make because it includes framing.
93
94const bindEffect = () =>
95 success(PgProtocol.encodeBind({
96 portal: "",
97 statement: "s1",
98 parameters: payload.map(({ oid, value }) => success(PgTypes.encode(value, oid)))
99 }))
100
101// The same job with the values written straight into the frame, which is what
102// a client should use: no array per parameter, no copy out of one.

Callers 1

PgCodec.tsFile · 0.85

Calls 3

encodeMethod · 0.80
successFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected