(no title)
RamiAwar | 1 year ago
This kind of generates the type safe queries for you, which is the end goal. But then why don't developers use the query builder instead? Why have an unnecessary generation step?
I feel like a good query builder ORM is more than enough and more straightforward than this. What am I missing?
bccdee|1 year ago
I just want type-safe SQL templates that return native data structures. Sqlc provides that, and I've quite enjoyed working with it.
paperplatter|1 year ago
stanleydrew|1 year ago
dlisboa|1 year ago
Many times I’ve been stuck in a place where I knew exactly how to write the SQL for it but had to spend several minutes studying the ORM docs to learn how to express it.
SQLc also has the advantage of static checking your queries.
It has some other disadvantages so it’s not all rosy.
paperplatter|1 year ago