Skip to content

Updating querpy #2

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

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Updating querpy #2

wants to merge 29 commits into from

Conversation

ftrotter
Copy link

Hey,
I really need something that works just like querpy. But unfortunately, the current querpy does not support python 3, and it does not support "CREATE TABLE dbname.tablename AS" or "LIMIT 10, 100" statements. Which use frequently.

I also found the code (especially the regexes) confusing and so I spent some time documenting the code...

I will be adding other features soon, like the ability to change CREATE TABLE into an INSERT INTO syntax, and possibly some more advanced WHERE logic.

If you are not interested in handling pull requests for an old project, let me know and I will fork and rename the project. In any case, thank you very much for a great starting point!

Regards,
-ft

@ftrotter
Copy link
Author

ftrotter commented Aug 4, 2022

Just a quick bump on this? Any chance for these changes to be accepted? because I have more waiting...

Either way is fine..

@ftrotter
Copy link
Author

Hello, as I mentioned in my commit @dmahone1 found a bug in the codebase which caused any variable name with 'OR' in it.. like 'REQUESTOR' or 'ORIGIN' to be caught by the regex that is looking for SQL 'OR' clauses.. and it replaces them with a newline..

This is serious bug, and without this pull request accepted, it is probably dangerous to rely on this code.. I think if you wanted you could extract the bug fix if you look at the commit that mentions @dmahone1 and make that change without accepting the rest of the pull request.

-ft

@ftrotter
Copy link
Author

We continue to slowly improve the functioning of ftrotter/querpy feel free to look there for updated code.

But if I had really understood SQlAlchemy when I was just starting out. I would have used that instead.

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