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

Function encodeEffect

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

Source from the content-addressed store, hash-verified

37const postgresTextParsers = payload.map(({ oid }) => postgresParsers[oid] ?? ((value: string) => value))
38
39const encodeEffect = () => payload.map(({ oid, value }) => success(PgTypes.encode(value, oid)))
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)))

Callers 1

verifyRoundTripEffectMethod · 0.85

Calls 3

encodeMethod · 0.80
successFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected