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 support for two arg directive #88

Closed breathe closed 1 year ago

breathe commented 1 year ago

Adds support for two arg version of pggen.arg()

pggen.arg('param', <default value expression>)

Closes https://github.com/jschaf/pggen/issues/86 and https://github.com/jschaf/pggen/issues/85

(sorry for the import reordering ... the vscode go extension does this by default -- not entirely clear to me why vscode go doesn't just comply with whatever the best/agreed upon default formatting conventions are for the ecosystem ... -- happy to update to remove those changes if you want)

breathe commented 1 year ago

I'm closing this due to lack of interest