8000 cursor.mogrify_many() · Issue #843 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

cursor.mogrify_many() #843

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
robhobbes opened this issue Mar 3, 2020 · 0 comments
Open

cursor.mogrify_many() #843

robhobbes opened this issue Mar 3, 2020 · 0 comments

Comments

@robhobbes
Copy link

This is a feature request. I think the cursor.mogrify() method is really useful, like if I want to log the exact query I'm about to execute. It'd be nice to have a cursor.mogrify_many() or similar that would give me back the exact insert statement I'm about to execute with executemany.

I'm not sure what it should do if the query is an update instead of an insert. Perhaps it could return the many queries joined with a semicolon and a newline, or it could always returns a list or iterator of the queries that were executed which would be of length one in the case of an insert query.

@methane methane changed the title Feature Request: cursor.mogrify_many() cursor.mogrify_many() Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0