How to get "returning id" using asyncpg(pgsql)
Question:
Answers:
Connection.fetch()
(and its variants) can be used to return the results of any data-returning statement, including INSERT ... RETURNING id
or INSERT ... RETURNING *
if you need all columns.
Connection.fetch()
(and its variants) can be used to return the results of any data-returning statement, including INSERT ... RETURNING id
or INSERT ... RETURNING *
if you need all columns.