-
Notifications
You must be signed in to change notification settings - Fork 881
Support for custom models #755
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
Would also love this! I use sqlx and frequently use tags like |
I agree this would be useful. Especially when you have a few queries with different WHERE clauses that return the same columns. This proposal has one big question: How would we verify that the given struct matches the data types returned from the query?
Would love to hear your thoughts on this. |
Uh oh!
There was an error while loading. Please reload this page.
Example:
db/queries/roles.sql
It isn't generated file!
internal/domain/roles
Generated method
P.S. These features can be useful because with it we can both use sqlc and follow Clean Architecture. And reuse structs for tables for complex queries with joins.
So my question is if I'd correctly implement this functionality would you approve PR (I'm asking because this feature can be not in the spirit of the project)
The text was updated successfully, but these errors were encountered: