3 ms·
SQLC has the same functionality, it does two things: - Create structs for your custom queries - Create structs for your DB tables if you point it at a DB
by valzam 2y ago
SQLC has the same functionality, it does two things:
- Create structs for your custom queries
- Create structs for your DB tables if you point it at a DB
- gregwebs 2y agoJet was built for joins though- sqlc doesn’t seem able to do those.
- mrastro 2y agoIt can do joins. By default it combines the query into a single flatten struct but you have the option to write the query to embed entities in the join. Not perfect and doesn't maintain the same type if you want a subset of columns but works for the majority of cases.
- gregwebs 2y agoWhat about one to many joins?