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