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

Function register

packages/sql/pg/src/PgTypes.ts:1642–1646  ·  view source on GitHub ↗
(oid: number, codec: Codec<A>)

Source from the content-addressed store, hash-verified

1640 * @since 4.0.0
1641 */
1642export const register = <A>(oid: number, codec: Codec<A>): void => {
1643 const unsafe = toUnsafeCodec(codec)
1644 codecs.set(oid, unsafe)
1645 if (oid >= 0 && oid < tableSize) table[oid] = unsafe
1646}
1647
1648/**
1649 * Removes a previously registered codec.

Callers

nothing calls this directly

Calls 2

toUnsafeCodecFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected