-
Notifications
You must be signed in to change notification settings - Fork 888
Override query return type #781
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
This is exactly what we are looking for in our project, unfortunately it's holding us back from using SQLC, is this in the pipeline? |
Also related to #755 |
I'd like to comment I have the same issue. In this example, I get back a I thought that maybe the example in embedding structs might solve the issue, but I still get two differently named types for each query. Any thoughts on this? Perhaps a configuration option to merge identical structs? Or a paramter in the Would the team be open to a PR to fix this? |
Is anybody working on this? I might be willing to issue a PR, if someone leads me in the right direction... |
Let's assume that we have two tables (postgres)
Problem is that queries
and
will generate different response structs (something like
GetByBarValueRow
andGetByFooValueRow
), however by meaning it's the same objects.I tried to use
rename
field in configuration but it didn't help. I quickly checked the source code and looks like there is no way to set the output type.Is it possible to add something like:
rename
also for queries types orname: GetByVarValue :type FooBar :many
Thanks!
The text was updated successfully, but these errors were encountered: