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

Method record_generator

tests/test_copy.py:688–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

686 delta = datetime.timedelta(days=1)
687
688 async def record_generator():
689 for i in range(100):
690 yield ('a-{}'.format(i), i, date + delta)
691
692 yield ('a-100', None, None)
693
694 res = await self.con.copy_records_to_table(
695 'copytab_async', records=record_generator(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected