Skip to content
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

internal/config: support golang overrides for slices #2339

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

andrewmbenton
Copy link
Collaborator

While investigating a fix for #2316 I discovered some generally unexpected behavior when attempting to get sqlc to generate slices of types in overrides for Go code gen. So I added a boolean "slice" property to the "go_type" property of the overrides object array, which behaves similarly to the "pointer" property.

This doesn't "fix" the above-referenced issue per se, but it does provide a more explicit way to tell sqlc how to achieve the desired result.

The docs I wrote may be wrong, so feel free to advise on any changes and I'll incorporate them.

… the "go_type" override property, and update docs
@kyleconroy kyleconroy merged commit 8d365df into sqlc-dev:main Jun 20, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants