@staticmethod<EOL><INDENT>def _query_iterator(cursor, chunksize, columns, index_col=None,<EOL>coerce_float=True, parse_dates=None):<DEDENT>
while True:<EOL><INDENT>data = cursor.fetchmany(chunksize)<EOL>if type(data) == tuple:<EOL><INDENT>data = list(data)<EOL><DEDENT>if not data:<EOL><INDENT>cursor.close()<EOL>break<EOL><DEDENT>else:<EOL><INDENT>yield _wrap_result(data, columns, index_col=index_col,<EOL>coerce_float=coerce_float,<EOL>parse_dates=parse_dates)<EOL><DEDENT><DEDENT>
Return generator through chunked result set