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

Method _init

asyncpg/cursor.py:255–266  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

253 __slots__ = ()
254
255 async def _init(self, timeout):
256 if self._state is None:
257 self._state = await self._connection._get_statement(
258 self._query,
259 timeout,
260 named=True,
261 record_class=self._record_class,
262 )
263 self._state.attach()
264 self._check_ready()
265 await self._bind(timeout)
266 return self
267
268 @connresource.guarded
269 async def fetch(self, n, *, timeout=None):

Callers 2

__await__Method · 0.95
_get_new_connectionMethod · 0.80

Calls 3

_check_readyMethod · 0.80
_bindMethod · 0.80
_get_statementMethod · 0.45

Tested by

no test coverage detected