code: def fetch(query, args=None, **kwargs):
      
      cur = execute(kwargs.pop('db', ''), query, args, **kwargs)
  
      for r in cur:
          yield r
  
      cur.connection.close()
docs: for record in fetch(query, args, **configs):
          print record
      :param args:
      :param db: str: db 스키마
      :param query: 쿼리 스트링
      :param kwargs: db connection 추가 인자. 보통 생략
      :return: iterator