We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think this would be a very nice way to return nested data from JOINs.
-- Example queries for sqlc CREATE TABLE parent ( id serial primary key, name varchar ); CREATE TABLE child ( parent_id int, col1 varchar, col2 varchar ); -- name: Get :one SELECT parent.*, array_agg(child)::child[] FROM parent JOIN child ON child.parent_id = parent.id;
Unfortunately sqlc generates this type:
type GetRow struct { ID int32 Name pgtype.Text Column3 []interface{} }
https://play.sqlc.dev/p/2c28fc8cfbd33e645990e52994a56646791963a08134cbf396f5e12079f443db
pgx seems to have some support for this
PostgreSQL
Go
The text was updated successfully, but these errors were encountered:
Tracking in #2760
Sorry, something went wrong.
No branches or pull requests
What do you want to change?
I think this would be a very nice way to return nested data from JOINs.
Unfortunately sqlc generates this type:
https://play.sqlc.dev/p/2c28fc8cfbd33e645990e52994a56646791963a08134cbf396f5e12079f443db
pgx seems to have some support for this
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered: