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

Function fetchArrayTypes

deno/src/connection.js:771–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

769 }
770
771 async function fetchArrayTypes() {
772 needsTypes = false
773 const types = await new Query([`
774 select b.oid, b.typarray
775 from pg_catalog.pg_type a
776 left join pg_catalog.pg_type b on b.oid = a.typelem
777 where a.typcategory = 'A'
778 group by b.oid, b.typarray
779 order by b.oid
780 `], [], execute)
781 types.forEach(({ oid, typarray }) => addArrayType(oid, typarray))
782 }
783
784 function addArrayType(oid, typarray) {
785 if (!!options.parsers[typarray] && !!options.serializers[typarray]) return

Callers 1

ReadyForQueryFunction · 0.70

Calls 2

addArrayTypeFunction · 0.70
forEachMethod · 0.65

Tested by

no test coverage detected