You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently a gorp user, mainly to map queries to structs. Replacing that with sqlc would be a nobrainer.
However, for some use cases you don't need specific queries, just standard CRUD operations are fine.
Am I understanding it correctly that I'd need to write create/select/update/delete queries for all types manually? Or is there a way to generate these convenience methods for a table?
Am I understanding it correctly that I'd need to write create/select/update/delete queries for all types manually?
Yes, that it correct. While it may change in the future, sqlc does not generate SQL queries for you. It compiles existing SQL queries into type-safe Go.
Or is there a way to generate these convenience methods for a table?
Convenience methods are not currently generated for tables
Activity
kyleconroy commentedon Dec 17, 2019
Yes, that it correct. While it may change in the future, sqlc does not generate SQL queries for you. It compiles existing SQL queries into type-safe Go.
Convenience methods are not currently generated for tables
rubenv commentedon Dec 17, 2019
Cool, thanks for the clarification.
Brilliant project by the way, really interesting approach. Keep it up 👍
kyleconroy commentedon Dec 17, 2019
Thanks! I'll ping this issue once progress is made on the CRUD front.
fr3fou commentedon Jun 27, 2020
Any news?
neverlink commentedon Dec 29, 2020
I've been dealing with the same thing, it's been a year, has there been any progress since?