@app.middleware('request')
async def generate_accessor(request):
    request['conn'] = (await app.pool.acquire())
    request['accessor'] = create_accessor(request['conn'])
@app.middleware('request')
async def generate_accessor(request):
    request['conn'] = (await app.pool.acquire())
    request['accessor'] = create_accessor(request['conn'])