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

Method fetch

asyncpg/prepared_stmt.py:168–178  ·  view source on GitHub ↗

r"""Execute the statement and return a list of :class:`Record` objects. :param str query: Query text :param args: Query arguments :param float timeout: Optional timeout value in seconds. :return: A list of :class:`Record` instances.

(self, *args, timeout=None)

Source from the content-addressed store, hash-verified

166
167 @connresource.guarded
168 async def fetch(self, *args, timeout=None):
169 r"""Execute the statement and return a list of :class:`Record` objects.
170
171 :param str query: Query text
172 :param args: Query arguments
173 :param float timeout: Optional timeout value in seconds.
174
175 :return: A list of :class:`Record` instances.
176 """
177 data = await self.__bind_execute(args, 0, timeout)
178 return data
179
180 @connresource.guarded
181 async def fetchval(self, *args, column=0, timeout=None):

Callers

nothing calls this directly

Calls 1

__bind_executeMethod · 0.95

Tested by

no test coverage detected