MCPcopy Create free account
hub / github.com/porsager/postgres / addArrayType

Function addArrayType

cjs/src/connection.js:781–788  ·  view source on GitHub ↗
(oid, typarray)

Source from the content-addressed store, hash-verified

779 }
780
781 function addArrayType(oid, typarray) {
782 if (!!options.parsers[typarray] && !!options.serializers[typarray]) return
783 const parser = options.parsers[oid]
784 options.shared.typeArrayMap[oid] = typarray
785 options.parsers[typarray] = (xs) => arrayParser(xs, parser, typarray)
786 options.parsers[typarray].array = true
787 options.serializers[typarray] = (xs) => arraySerializer(xs, options.serializers[oid], options, typarray)
788 }
789
790 function tryNext(x, xs) {
791 return (

Callers 1

fetchArrayTypesFunction · 0.70

Calls 2

arrayParserFunction · 0.50
arraySerializerFunction · 0.50

Tested by

no test coverage detected