jschaf / pggen

Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
MIT License
281 stars 26 forks source link

Fix primitive array types inside a composite type #63

Closed jschaf closed 2 years ago

jschaf commented 2 years ago

Previously, we would attempt to create a newArrayInit function, but instead we can use the pgtype array variants, like pgtype.BoolArray.