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