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

Function lookup

packages/sql/pg/src/PgTypes.ts:1564–1564  ·  view source on GitHub ↗
(oid: number)

Source from the content-addressed store, hash-verified

1562const table = new Array<UnsafeCodec<any> | undefined>(tableSize)
1563
1564const lookup = (oid: number): UnsafeCodec<any> | undefined => oid >= 0 && oid < tableSize ? table[oid] : codecs.get(oid)
1565
1566const builtins = makeBuiltins(lookup)
1567

Callers 5

requireCodecFunction · 0.70
writeArrayFunction · 0.70
decodeArrayFunction · 0.70
decodeRecordFunction · 0.70
makeFieldReaderFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected