def commitDB(self): """ Commit changes to DB """ self._sq.commit() if self.config.updateSignAfterEachCommit: update_sum(self._db)
def closeAndUpdateSum(self): """ It closes the db and updates db sum file """ if self._sq: self._sq.close() update_sum(self._db)
def updateLocalSum(): if os.path.exists(self.local_db): update_sum(self.local_db)