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

Function decodeEffect

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

Source from the content-addressed store, hash-verified

40const encodePostgresJs = () => payload.map(({ oid, value }) => postgresSerializers[oid]?.(value) ?? String(value))
41
42const decodeEffect = () => payload.map(({ oid }, index) => success(PgTypes.decode(effectEncoded[index], oid, 1)))
43const decodePostgresJs = () => payload.map(({ text }, index) => postgresTextParsers[index](text))
44
45const normalize = (values: ReadonlyArray<unknown>) =>

Callers 1

PgCodec.tsFile · 0.70

Calls 3

successFunction · 0.70
mapMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected