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

Add pggen --inline-param-count=2 flag #87

Closed jschaf closed 1 year ago

jschaf commented 1 year ago

Default to two to match previous behavior. Main use case is to always output a struct for parameters. Useful so that structure doesn't change when adding a new param.

Fixes #83.