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

Method test_cursor_04

tests/test_cursor.py:157–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155 await st.cursor(prefetch=10)
156
157 async def test_cursor_04(self):
158 async with self.con.transaction():
159 st = await self.con.cursor('SELECT generate_series(0, 100)')
160 await st.forward(42)
161 self.assertEqual(await st.fetchrow(), (42,))

Callers

nothing calls this directly

Calls 4

transactionMethod · 0.80
forwardMethod · 0.80
cursorMethod · 0.45
fetchrowMethod · 0.45

Tested by

no test coverage detected