MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / fetchmany

Method fetchmany

asyncpg/prepared_stmt.py:215–233  ·  view source on GitHub ↗

Execute the statement and return a list of :class:`Record` objects. :param args: Query arguments. :param float timeout: Optional timeout value in seconds. :return: A list of :class:`Record` instances. .. versionadded:: 0.30.0

(self, args, *, timeout=None)

Source from the content-addressed store, hash-verified

213
214 @connresource.guarded
215 async def fetchmany(self, args, *, timeout=None):
216 """Execute the statement and return a list of :class:`Record` objects.
217
218 :param args: Query arguments.
219 :param float timeout: Optional timeout value in seconds.
220
221 :return: A list of :class:`Record` instances.
222
223 .. versionadded:: 0.30.0
224 """
225 return await self.__do_execute(
226 lambda protocol: protocol.bind_execute_many(
227 self._state,
228 args,
229 portal_name='',
230 timeout=timeout,
231 return_rows=True,
232 )
233 )
234
235 @connresource.guarded
236 async def executemany(self, args, *, timeout: typing.Optional[float]=None):

Callers

nothing calls this directly

Calls 1

__do_executeMethod · 0.95

Tested by

no test coverage detected