INNER CODE UNIT · Python
executemany
Xeron2000/openOii · backend/aiosqlite/__init__.py:79
async def executemany(self, operation: Any, parameters: Iterable[Sequence[Any]]) -> Any:
await self._ensure_cursor()
assert self._cursor is not None
self._cursor.executemany(operation, list(parameters))
self.description = self._cursor.description
self.rowcount = self._cursor.rowcount
self.lastrowid = self._cursor.lastrowid
return self
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)