I wanted to do something like this:
async with app.pg_pool.acquire() as pg:
uid = await pg.execute('INSERT INTO users (created, keyed, key, email) '
'VALUES ($1, $2, $3, $4) RETURNING id',
time, time, key, rj['email'])['id']
However Connection.execute
doesn't seem to return anything other than the status:
The question could be otherwise phrased as: How do I get back the response of the RETURNING
statement when using asyncpg?