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

Method _exec

asyncpg/cursor.py:149–159  ·  view source on GitHub ↗
(self, n, timeout)

Source from the content-addressed store, hash-verified

147 return buffer
148
149 async def _exec(self, n, timeout):
150 self._check_ready()
151
152 if not self._portal_name:
153 raise exceptions.InterfaceError(
154 'cursor does not have an open portal')
155
156 protocol = self._connection._protocol
157 buffer, _, self._exhausted = await protocol.execute(
158 self._state, self._portal_name, n, True, timeout)
159 return buffer
160
161 async def _close_portal(self, timeout):
162 self._check_ready()

Callers 3

__anext__Method · 0.80
fetchMethod · 0.80
fetchrowMethod · 0.80

Calls 2

_check_readyMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected