[HN Gopher] Sqlc: Compile SQL to type-safe code
___________________________________________________________________
Sqlc: Compile SQL to type-safe code
Author : wsc981
Score : 23 points
Date : 2024-09-08 08:04 UTC (1 days ago)
(HTM) web link (sqlc.dev)
(TXT) w3m dump (sqlc.dev)
| geoka9 wrote:
| Have been enjoying go-jet that takes a different approach:
| analyzes the tables in your DB and generates a set of Golang
| structs that lets you write 100% Golang code that looks like 99%
| SQL. Genius!
|
| https://github.com/go-jet/jet
| desiderantes wrote:
| Oh, so it's jOOQ but for Go. Nice. Sadly it does not support
| most custom Postgres things.
| pier25 wrote:
| I've been looking into sqlc lately for Go. Seems brilliant except
| for the lack of dynamic queries:
|
| https://github.com/sqlc-dev/sqlc/discussions/364
| dangoodmanUT wrote:
| this is great, until it breaks. For example it loses context on
| joins to allow columns that don't exist, which immediately breaks
| when you go to use it.
| MaxRS wrote:
| Migrated from GORM to sqlc. We like the code generation approach
| with the simplistic abstractions.
|
| https://github.com/helpwave/services/tree/main/services/task...
___________________________________________________________________
(page generated 2024-09-09 23:00 UTC)