def executemany(self, sql, param_list):
"""
Outputs a batch of SQL queries to an appstats trace
"""
self.start_appstats_recording()
try:
return super(CursorDebugWrapper, self).executemany(sql, param_list)
finally:
try:
times = len(param_list)
except TypeError: # param_list could be an iterator
times = '?'
sql = '{0} times: {1}'.format(times, sql)
self.end_appstats_recording(sql)
评论列表
文章目录