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

Conditionally add base_query/1 and finalize_query/2 callbacks via macro #21

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

Conversation

dgigafox
Copy link

Resolve #20. Callbacks base_query/1 and finalize_query/2 are not inserted in compile-time. This wraps them in a macro to insert them when permit_ecto is loaded conditionally. It has a similar approach used by the decimal library as mentioned here https://elixirforum.com/t/conditional-compilation-of-callback-and-impl/23149.

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.

Compilation warnings if Permit.Phoenix.LiveView is used with permit_ecto
1 participant