-
Couldn't load subscription status.
- Fork 435
Closed
Labels
Description
With the following query
INSERT INTO people (name) VALUES ($1) RETURNING idand values to create [('anne',), ('ben',), ('charlie',)].
I believe there's currently no way with asyncpg to execute this single query and get all the ids returned.
I've tried:
executemanybut the result is discardedfetchbut that doesn't extend to executing manyfetchwhile casting the argument to an array::TEXT[][]but I either get a syntax error or a single value of the stringified list insert.
In short: would it be possible for executemany to return the result?
feluxe, galavasteg, komendantyan and pohmelie