-
Notifications
You must be signed in to change notification settings - Fork 882
CRUD methods #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 |
Cool, thanks for the clarification. Brilliant project by the way, really interesting approach. Keep it up 👍 |
Thanks! I'll ping this issue once progress is made on the CRUD front. |
Any news? |
I've been dealing with the same thing, it's been a year, has there been any progress since? |
I'm currently a
gorp
user, mainly to map queries to structs. Replacing that withsqlc
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?
The text was updated successfully, but these errors were encountered: