MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / __aiter__

Method __aiter__

asyncpg/cursor.py:51–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49
50 @connresource.guarded
51 def __aiter__(self):
52 prefetch = 50 if self._prefetch is None else self._prefetch
53 return CursorIterator(
54 self._connection,
55 self._query,
56 self._state,
57 self._args,
58 self._record_class,
59 prefetch,
60 self._timeout,
61 )
62
63 @connresource.guarded
64 def __await__(self):

Callers

nothing calls this directly

Calls 1

CursorIteratorClass · 0.85

Tested by

no test coverage detected