Skip to content

chore: add custom querier functions to dbgen #8496

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

Merged
merged 4 commits into from
Jul 13, 2023
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jul 13, 2023

Funcs in the modelquerier custom methods were not included. Put them after the sqlc methods.

@Emyrk Emyrk requested a review from kylecarbs July 13, 2023 13:21
Comment on lines 19 to 22
// Force these imports, for some reason the autogen does not include them.
var _ uuid.UUID
var _ rbac.Action

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason adding the custom funcs to the list removes these imports. I was in the debugger trying to understand why all morning. This fixes it, and probably not worth spending more time investigating when this is a simple work around.

@Emyrk Emyrk requested a review from mafredri July 13, 2023 13:39
@Emyrk Emyrk merged commit 3b43318 into main Jul 13, 2023
@Emyrk Emyrk deleted the stevenmasley/db_gen_custom branch July 13, 2023 17:12
@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants