#NEWLINE# def insert_file_modification( self , commit_id , file_id , status , additions , deletions , changes , patch_content ) : #NEWLINE# #INDENT# cursor = self . cnx . cursor ( ) #NEWLINE# query = ( ( 'INSERT INTO ' + deletions . db_name ) + '.file_modification VALUES (NULL, %s, %s, %s, %s, %s, %s, %s)' ) #NEWLINE# arguments = [ commit_id , file_id , status , additions , deletions , changes , patch_content ] #NEWLINE# cursor . execute ( query , arguments ) #NEWLINE# last_id = cursor . lastrowid #NEWLINE# self . cnx . commit ( ) #NEWLINE# cursor . close ( ) #NEWLINE# return last_id