Two custom queries return the same columns #1183
Unanswered
kevinburke1
asked this question in
Q&A
Replies: 1 comment
-
There is sadly not a way to do this right now. The main issue is that we don't have a syntax for declaring the return type of a query. Thoughts on what that should look like? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have two queries that each select the same subset of columns on the same table, sqlc creates two different structs instead of one. Is there a way to get them to return the same struct?
We could potentially do this with type aliases in the same package.
Beta Was this translation helpful? Give feedback.
All reactions