cursor.mogrify_many()
還沒有人認領這個 Issue。
評估
研究方向
Start by locating the cursor.mogrify() and executemany() entry points in PyMySQL. Clarify the expected mogrify_many() result for inserts and updates, including whether it returns joined SQL or a list/iterator; done means the behavior and output shape are specified and covered by tests.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 7.8k
- 分支
- 1.4k
- 平均合併
- 5 小時 40 分鐘
- 30 天內合併 PR
- 5
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PyMySQL/PyMySQL 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 64/100
-
難度 4/5 3-5 天 新手友好度 48/100
-
Compression 未關閉Feature Request Priority-High
難度 5/5 一週以上 新手友好度 20/100
-
Feature Request
難度 5/5 一週以上 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 86/100
-
🐛 Bug 🔔 Pending processing
難度 2/5 1-3 小時 新手友好度 84/100
jumpserver/jumpserver#17584 ·