Lines Matching refs:commit
173 return self.con.commit()
176 def commit(self): member in db_sql
292 def _exec_sql_with_commit(self, sql, values, commit): argument
297 self.con.commit()
302 if commit:
303 self.con.commit()
306 def insert(self, table, data, commit=None): argument
321 self._exec_sql_with_commit(cmd, values, commit)
324 def delete(self, table, where, commit = None): argument
326 if commit is None:
327 commit = self.autocommit
333 self._exec_sql_with_commit(sql, values, commit)
336 def update(self, table, data, where, commit = None): argument
343 if commit is None:
344 commit = self.autocommit
357 self._exec_sql_with_commit(cmd, values, commit)
360 def delete_job(self, tag, commit = None): argument
374 def insert_job(self, tag, job, parent_job_id=None, commit=None): argument
377 job.machine_idx = self.insert_machine(job, commit=commit)
381 self.update_machine_information(job, commit=commit)
403 self.update('tko_jobs', data, {'job_idx': job.index}, commit=commit)
405 self.insert('tko_jobs', data, commit=commit)
407 self.update_job_keyvals(job, commit=commit)
409 self.insert_test(job, test, commit=commit)
412 def update_job_keyvals(self, job, commit=None): argument
419 self.update('tko_job_keyvals', data, where=where, commit=commit)
421 self.insert('tko_job_keyvals', data, commit=commit)
424 def insert_test(self, job, test, commit = None): argument
425 kver = self.insert_kernel(test.kernel, commit=commit)
436 {'test_idx': test_idx}, commit=commit)
444 self.insert('tko_tests', data, commit=commit)
454 commit=commit)
459 commit=commit)
477 self.insert('tko_iteration_perf_value', data, commit=commit)
482 self.insert('tko_test_attributes', data, commit=commit)
487 self.insert('tko_test_labels_tests', data, commit=commit)
512 def insert_machine(self, job, commit = None): argument
514 self.insert('tko_machines', machine_info, commit=commit)
518 def update_machine_information(self, job, commit = None): argument
522 commit=commit)
543 def insert_kernel(self, kernel, commit = None): argument
562 commit=commit)
572 self.insert_patch(kver, patch, commit=commit)
576 def insert_patch(self, kver, patch, commit = None): argument
584 commit=commit)