Skip to content

Include column types for composite type #3906

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eaglesemanation
Copy link

With this addition, it should be possible to implement codegen on pgx/v5 side to resolve #2760
. Not sure for other drivers.

I intend to implement codegen as part of this PR as well, just want to get visibility as soon as possible.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 29, 2025
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 4, 2025
@eaglesemanation
Copy link
Author

Intentionally left endtoend test failing, until I verify that generated code does work as intended

@eaglesemanation
Copy link
Author

Tested this, breaks if a column is an array of composite type. Otherwise works fine, except that pgx.Tx does not implement LoadTypes(...), will look into it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support composite types
1 participant