code: def iter_result_proxy(rp, step=None):
      
      while True:
          if step is None:
              chunk = rp.fetchall()
          else:
              chunk = rp.fetchmany(step)
          if not chunk:
              break
          for row in chunk:
              yield row
docs: Iterate over the ResultProxy.