Lines Matching defs:tx
96 /// \param tx Transaction to use for the writes to the database.
99 add_context(store::write_transaction& tx, const std::size_t env_vars)
105 (void)tx.put_context(context);
111 /// \param tx Transaction to use for the writes to the database.
118 add_tests(store::write_transaction& tx,
136 const int64_t tp_id = tx.put_test_program(test_program);
139 const int64_t tc_id = tx.put_test_case(test_program, F("t%s") % j,
145 tx.put_result(results[j], tc_id, start, end);
149 tx.put_test_case_file("__STDOUT__", fs::path("fake-out"), tc_id);
151 tx.put_test_case_file("__STDERR__", fs::path("fake-err"), tc_id);
255 store::write_transaction tx = backend.start_write();
256 add_context(tx, 0);
257 tx.commit();
296 store::write_transaction tx = backend.start_write();
297 add_context(tx, 2);
298 add_tests(tx, "dir/prog-1", results1, false, false);
299 add_tests(tx, "dir/sub/prog-2", results2, true, true);
300 tx.commit();