Run a query for each sequence of arguments in *args* and return the results as a list of :class:`Record`. Pool performs this operation using one of its connections. Other than that, it behaves identically to :meth:`Connection.fetchmany() <asyncpg.connection.
(self, query, args, *, timeout=None, record_class=None)
| 782 | ) |
| 783 | |
| 784 | async def fetchmany(self, query, args, *, timeout=None, record_class=None): |
| 785 | """Run a query for each sequence of arguments in *args* |
| 786 | and return the results as a list of :class:`Record`. |
| 787 | |
| 788 | Pool performs this operation using one of its connections. Other than |
| 789 | that, it behaves identically to |
| 790 | :meth:`Connection.fetchmany() |
| 791 | <asyncpg.connection.Connection.fetchmany>`. |
| 792 | |
| 793 | .. versionadded:: 0.30.0 |
| 794 | """ |
| 795 | async with self.acquire() as con: |
| 796 | return await con.fetchmany( |
| 797 | query, args, timeout=timeout, record_class=record_class |
| 798 | ) |
| 799 | |
| 800 | async def copy_from_table( |
| 801 | self, |