utils.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:montage 作者: storyful 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号