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

Method __anext__

tests/test_copy.py:475–480  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

473 return self
474
475 async def __anext__(self):
476 if self.rowcount >= 100:
477 raise StopAsyncIteration
478 else:
479 self.rowcount += 1
480 return b'a1' * 500000 + b'\t' + b'b1' * 500000 + b'\n'
481
482 res = await self.con.copy_to_table('copytab', source=_Source())
483

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected