Skip to content

cursor.mogrify_many() #843

Open
Open
@robhobbes

Description

@robhobbes

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions