Replies: 1 comment 1 reply
-
This is the composite type scenario. I'm also yearning for this functionality. In postgres the query would look like.
It's how you would do graphql style queries in postgresql instead of something like
Unfortunately I don't think it is supported in sqlc. One workaround is to go through json using
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a many to many relationship in postgres:
I need to search for the user and all his posts, but SQL does not generate a struct of type
[]Posts
ending up like this:I need it to look like this:
my query:
Is it possible to do this with sqlc?
Beta Was this translation helpful? Give feedback.
All reactions