aio-libs / aio-libs/aiomysql

Consider renaming mogrify() to something else.

Offen
#501 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
docs enhancement pymysql pymysql-blocked
Vorherrschende Sprache
Python
Sterne
1.9k
Forks
272
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

`mogrify()` is slang and not intuitive. Please consider renaming this to something more self-documenting like `execute_preview()` or `query_preview()` or `preview()`

"Returns the exact string that is sent to the database by calling the execute() method. "

https://github.com/aio-libs/aiomysql/blob/2eb8533d18b3a231231561a3ac881ce334f01312/aiomysql/cursors.py#L205

This is a useful helper, but right now it's nearly impossible to find without reading the code line-by-line.

Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.