INNER CODE UNIT · Python
fetchone
Xeron2000/openOii · backend/aiosqlite/__init__.py:89
async def fetchone(self) -> Any:
await asyncio.sleep(0)
await self._ensure_cursor()
assert self._cursor is not None
return self._cursor.fetchone()
async def fetchmany(self, size: Optional[int] = None) -> list[Any]:
await asyncio.sleep(0)
await self._ensure_cursor()
assert self._cursor is not None
n = self.arraysize if size is None else size
return self._cursor.fetchmany(n)
async def fetchall(self) -> list[Any]:
await asyncio.sleep(0)
await self._ensure_cursor()
assert self._cursor is not None
return self._cursor.fetchall()