Lines Matching refs:txn
156 def addDataToDB(self, d, txn=None): argument
160 d.put(key, '|'.join(value), txn=txn)
162 def createDB(self, txn=None): argument
168 db.DB_CREATE | db.DB_THREAD | self.dbFlags, txn=txn)
246 def finish_test(self, secDB, txn=None): argument
248 vals = secDB.pget('Blues', txn=txn)
251 vals = secDB.pget('Unknown', txn=txn)
259 self.cur = self.getDB().cursor(txn)
277 self.cur = secDB.cursor(txn)
341 def txn_finish_test(self, sDB, txn): argument
343 self.finish_test(sDB, txn=txn)
348 if txn:
349 txn.commit()
357 txn = self.env.txn_begin()
359 self.createDB(txn=txn)
365 db.DB_CREATE | db.DB_THREAD, txn=txn)
366 self.getDB().associate(self.secDB, self.getGenre, txn=txn)
368 self.addDataToDB(self.getDB(), txn=txn)
370 txn.abort()
373 self.txn_finish_test(self.secDB, txn=txn)