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

Function addArrayType

cf/src/connection.js:783–790  ·  view source on GitHub ↗
(oid, typarray)

Source from the content-addressed store, hash-verified

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

Callers 1

fetchArrayTypesFunction · 0.70

Calls 2

arrayParserFunction · 0.90
arraySerializerFunction · 0.90

Tested by

no test coverage detected