我想做这样的事情:
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']
但是Connection.execute
似乎除了状态之外没有返回任何东西:
问题也可以表述为:RETURNING
使用 asyncpg 时如何取回语句的响应?