INNER CODE UNIT · Python
__aiter__
Xeron2000/openOii · backend/aiosqlite/__init__.py:122
def __aiter__(self):
raise NotSupportedError("server-side cursors are not supported for sqlite")
class Connection:
# SQLAlchemy sets this attribute on the object returned by connect().
daemon: bool = False
def __init__(self, connector) -> None:
self._connector = connector
self._conn: sqlite3.Connection | None = None
def __await__(self):
return self._open().__await__()
async def __aenter__(self) -> "Connection":
return await self._open()