jschaf/pggen
View on GitHub ↗ ★ 317 Go
Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
8 mentions on Hacker News by 2 people: 0 stories, 8 comments · first 2021-03-10 · latest 2023-01-06
20082026
-
…layer needs a mechanism to template SQL. I haven't built this out yet but would like to. [1]: https://github.com/jschaf/pggen
comment by sa46 · 2023-01-06 · in Ask HN: ORM or Native SQL? -
…statements, 120 "UPDATE" statements, 120 "DELETE" statements as raw strings Yes. For example: https://github.com/jschaf/pggen/blob/main/example/erp/order/... . > that is also using an ORM ORM as a term covers a wide swathe of usage. In the…
comment by sa46 · 2021-11-27 · in Our journey in dropping the ORM in Go -
…Some things are easier with an ORM, like dynamic ordering or dynamic group-by clauses. [1]: https://github.com/jschaf/pggen Similar comment from a few months ago comparing Go approaches to SQL: https://news.ycombinator.com/item?id=28463938
comment by sa46 · 2021-11-27 · in Our journey in dropping the ORM in Go -
You might like pggen (I’m the author) which only supports Postgres and pgx. https://github.com/jschaf/pggen pggen occupies the same design space as sqlc but the implementations are quite different. Sqlc figures out the query types using…
comment by sa46 · 2021-11-23 · in Back to basics: Writing an application using Go and PostgreSQL -
…. https://github.com/gnormal/gnorm . [1]: https://github.com/opendoor/pggen [2]: https://github.com/jschaf/pggen
comment by ethanpailes · 2021-09-09 · in How We Went All In on sqlc/pgx for Postgres and Go -
…[1]: https://docs.google.com/document/d/1NvVKD6cyXvJLWUfqFYad76CW... Disclaimer: author of pggen ( https://github.com/jschaf/pggen ), inspired by sqlc
comment by sa46 · 2021-09-08 · in How We Went All In on sqlc/pgx for Postgres and Go -
…directly to protobuf to avoid the serialization dance of Go structs to Proto structs. [1]: https://github.com/jschaf/pggen
comment by sa46 · 2021-06-20 · in Postgres to TypeScript Interfaces and Enums -
…model; it's just SQL and the tools automate the mapping between database rows and Go structs. [1]: https://github.com/jschaf/pggen [2]: https://github.com/kyleconroy/sqlc
comment by sa46 · 2021-03-10 · in I don't want to learn your query language (2018)