cursor.mogrify_many()

未關閉
#843 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
mysql, python
領域
api, databases

研究方向

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 內容生成。

描述

Feature Request

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

PyMySQL/PyMySQL 的其他 Issue

查看 PyMySQL/PyMySQL 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。