#NEWLINE# def executemany( self , sql , param_list ) : #NEWLINE# #INDENT# self . set_dirty ( ) #NEWLINE# start = time ( ) #NEWLINE# try : #NEWLINE# #INDENT# return self . cursor . executemany ( sql , param_list ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# stop = time ( ) #NEWLINE# duration = ( stop - start ) #NEWLINE# try : #NEWLINE# #INDENT# times = len ( param_list ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# times = '?' #NEWLINE# #UNINDENT# self . db . queries . append ( { #NEWLINE# #INDENT# 'sql' : ( '%s times: %s' % ( times , sql ) ) , #NEWLINE# 'time' : ( '%.3f' % duration ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# logger . debug ( ( '(%.3f) %s; args=%s' % ( duration , sql , param_list ) ) , extra = { #NEWLINE# #INDENT# 'duration' : duration , #NEWLINE# 'sql' : sql , #NEWLINE# 'params' : param_list , #NEWLINE# #UNINDENT# } )