code: async def select(query):
      
      assert isinstance(query, peewee.SelectQuery),\
          ("Error, trying to run select coroutine"
           "with wrong query class %s" % str(query))
  
      cursor = await _execute_query_async(query)
  
      result = AsyncQueryWrapper(cursor=cursor, query=query)
  
      try:
          while True:
              await result.fetchone()
      except GeneratorExit:
          pass
      finally:
          await cursor.release()
  
      return result
docs: Perform SELECT query asynchronously.