aio-libs / aio-libs/aiomysql

Consider renaming mogrify() to something else.

Ouverte
#501 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
docs enhancement pymysql pymysql-blocked
Langage dominant
Python
Étoiles
1.9k
Forks
272
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

`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!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.