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