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

Add decorators and tests #22

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

Conversation

jayvdb
Copy link

@jayvdb jayvdb commented Sep 17, 2020

No description provided.

@jayvdb
Copy link
Author

jayvdb commented Sep 17, 2020

https://github.com/dabapps/django-zen-queries/blob/master/zen_queries/decorators.py is a better approach, allowing per-connection, but that requires hooking into create_cursor, which is a bit harder, and diverges from the current approach used for the global readonly code (which was not being tested). So I think it is better to stick to one approach at the moment.

@jayvdb
Copy link
Author

jayvdb commented Sep 29, 2024

Ping @streeter

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.

1 participant