code: def commit_all(self):
          
          while self._transaction_nesting_level != 0:
              if not self._auto_commit and self._transaction_nesting_level == 1:
                  return self.commit()
              self.commit()
docs: Commits all current nesting transactions.