MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / _execute

Method _execute

tortoise/queryset.py:1906–1911  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1904 self._db = db
1905
1906 async def _execute(self) -> Any:
1907 instance_list = await self._db.executor_class(
1908 model=self.model,
1909 db=self._db,
1910 ).execute_select(RawSQL(self._sql).get_sql(self._db.query_class.SQL_CONTEXT), [])
1911 return instance_list
1912
1913 def __await__(self) -> Generator[Any, None, list[MODEL]]:
1914 self._choose_db_if_not_chosen()

Callers 1

__await__Method · 0.95

Calls 3

RawSQLClass · 0.90
execute_selectMethod · 0.80
get_sqlMethod · 0.45

Tested by

no test coverage detected