jackc / pgtype

MIT License
300 stars 111 forks source link

Add support for json[] via JSONArray #179

Closed das7pad closed 1 year ago

das7pad commented 1 year ago

This PR is adding support for handling json[] via a generated JSONArray type.

The OID for json[] is 199, per https://github.com/postgres/postgres/blob/be39d88934331c47c43d8c51500305e928f06240/src/include/catalog/pg_type.dat#L138

I've copied the jsonb[] tests and adjusted the references accordingly.

das7pad commented 1 year ago

Thanks!