INNER CODE UNIT · Python
_open
Xeron2000/openOii · backend/aiosqlite/__init__.py:143
async def _open(self) -> "Connection":
await asyncio.sleep(0)
if self._conn is None:
self._conn = self._connector()
return self
async def cursor(self, *args: Any, **kwargs: Any) -> Cursor:
await asyncio.sleep(0)
await self._open()
return Cursor(self)
async def create_function(self, *args: Any, **kwargs: Any) -> None:
await asyncio.sleep(0)
await self._open()
assert self._conn is not None
self._conn.create_function(*args, **kwargs)
async def commit(self) -> None: