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

Added option flag to exclude certain statements #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sdressler
Copy link

Great tool! As we are developing a PSQL DB plugin where certain statements are not supported, I wanted to exclude these. IMO my implementation is rather naive and I certainly can do better but I need to understand the code a bit more first. It currently focuses only on statements like UPDATE, DELETE, ...

I also took the liberty to switch the comparison to a lambda which increases maintainability IMO.

Potential improvements are:

  • Restrict to only possible choices, and
  • Change the lookup to a bitmask, haven't checked the impact on the query generation rate yet but I think it slows down.

@anse1
Copy link
Owner

anse1 commented Mar 15, 2018 via email

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.

2 participants