'Fetchs all available rows from the cursor.'

def fetchall(self):

    self._check_executed()
    if self.rownumber:
        result = self._rows[self.rownumber:]
    else:
        result = self._rows
    self.rownumber = len(self._rows)
    return result
