LoginSignup
0
1

More than 5 years have passed since last update.

PyMySQL デバッグ 小ネタ

Posted at

PyMySQLの発行するSQL文の確認方法

pymysql/cursors.py
166         query = self.mogrify(query, args)
167         print(query) # print文でクエリを出力する。
168         result = self._query(query)

注意

直接、ライブラリに手を入れているので、本番の時に取り除くことを忘れないように。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1