Execute an SQL *command* for each sequence of arguments in *args*. Pool performs this operation using one of its connections. Other than that, it behaves identically to :meth:`Connection.executemany() `. .. version
(
self,
command: str,
args,
*,
timeout: Optional[float]=None,
)
| 592 | return await con.execute(query, *args, timeout=timeout) |
| 593 | |
| 594 | async def executemany( |
| 595 | self, |
| 596 | command: str, |
| 597 | args, |
| 598 | *, |
| 599 | timeout: Optional[float]=None, |
| 600 | ): |
| 601 | """Execute an SQL *command* for each sequence of arguments in *args*. |
| 602 | |
| 603 | Pool performs this operation using one of its connections. Other than |
| 604 | that, it behaves identically to |
| 605 | :meth:`Connection.executemany() |
| 606 | <asyncpg.connection.Connection.executemany>`. |
| 607 | |
| 608 | .. versionadded:: 0.10.0 |
| 609 | """ |
| 610 | async with self.acquire() as con: |
| 611 | return await con.executemany(command, args, timeout=timeout) |
| 612 | |
| 613 | async def fetch( |
| 614 | self, |