def _run_iterative()

in cartography/graph/statement.py [0:0]


    def _run_iterative(self, session):
        """
        Iterative statement execution.

        Expects the query to return the total number of records updated.
        """
        self.parameters["LIMIT_SIZE"] = self.iterationsize

        # TODO improve this
        done = False
        while not done:
            results = self._run(session)
            done = False
            for r in results:
                if int(r['TotalCompleted']) == 0:
                    done = True

                break