async def cars(request):
"""
Возвращаем все машины из бд
"""
async with request.app['db'].acquire() as conn:
query = select([car])
result = await conn.fetch(query)
return web.Response(body=str(result))
[<Record id=1 brand='Lada priora' number='e456xe97'>, <Record id=2 brand='bmw x5' number='e123xd56'>]