INNER CODE UNIT · Python
__init__
Xeron2000/openOii · backend/aiosqlite/__init__.py:33
def __init__(self, conn: "Connection") -> None:
self._conn = conn
self._cursor: sqlite3.Cursor | None = None
self._closed = False
self.arraysize = 1
self.rowcount = -1
self.lastrowid = -1
self.description = None
async def __aenter__(self) -> "Cursor":
return self
async def __aexit__(self, exc_type, exc, tb) -> None:
await self.close()
async def _ensure_cursor(self) -> None:
await asyncio.sleep(0)