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 imported types with slices and pointers #61

Closed jschaf closed 2 years ago

jschaf commented 2 years ago

Most of the groundwork was in #60. Add a test to make sure it works. Custom type support is probably still dodgy. I suspect the code will compile, but you'd have to implement the pgx.ValueTranscoder interface for it to actually work.

Fixes #43.