async def select(query):
assert isinstance(query, peewee.SelectQuery),("<STR_LIT>"<EOL>"<STR_LIT>" % str(query))<EOL>cursor = await _execute_query_async(query)<EOL>result = AsyncQueryWrapper(cursor=cursor, query=query)<EOL>try:<EOL><INDENT>while True:<EOL><INDENT>await result.fetchone()<EOL><DEDENT><DEDENT>except GeneratorExit:<EOL><INDENT>pass<EOL><DEDENT>finally:<EOL><INDENT>await cursor.release()<EOL><DEDENT>return result<EOL>
Perform SELECT query asynchronously.