def _HandleResult(self, result):
    if result.HasField('rows'):
      description = self._GetDescription(result)
      if description:
        self._description = description
      if not self._rows:


        self._rows = collections.deque()
      new_rows = self._GetRows(result)
      if new_rows is not None:
        if self._rowcount == -1:
          self._rowcount = len(new_rows)
        else:
          self._rowcount += len(new_rows)
        self._rows.extend(new_rows)
    elif result.HasField('rows_updated'):
      self._rowcount = result.rows_updated

    if result.generated_keys:
      self.lastrowid = long(result.generated_keys[-1])

    if result.HasField('statement_id'):
      self._statement_id = result.statement_id

    self._more_rows = result.more_rows
    self._more_results = result.more_results
    return result
Handle the ResultProto from an Exec/ExecOp call.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/storage/speckle/python/api/rdbms.py/Cursor._HandleResult