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

Function decodePostgresJs

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

Source from the content-addressed store, hash-verified

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>) =>
46 values.map((value) => value instanceof Uint8Array ? Array.from(value) : value)

Callers 1

PgCodec.tsFile · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected