MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tortoise/queryset.py:1901–1904  ·  view source on GitHub ↗
(self, model: type[MODEL], db: BaseDBAsyncClient, sql: str)

Source from the content-addressed store, hash-verified

1899 __slots__ = ("_sql", "_db")
1900
1901 def __init__(self, model: type[MODEL], db: BaseDBAsyncClient, sql: str) -> None:
1902 super().__init__(model)
1903 self._sql = sql
1904 self._db = db
1905
1906 async def _execute(self) -> Any:
1907 instance_list = await self._db.executor_class(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected