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

Method test_cursor_04

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

Source from the content-addressed store, hash-verified

166 await st.cursor(prefetch=10)
167
168 async def test_cursor_04(self):
169 async with self.con.transaction():
170 st = await self.con.cursor('SELECT generate_series(0, 100)')
171 await st.forward(42)
172 self.assertEqual(await st.fetchrow(), (42,))
173
174 @tb.with_connection_options(statement_cache_size=0)
175 async def test_cursor_05_unnamed_statement_reparsed(self):

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