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

Method __aiter__

tortoise/queryset.py:1867–1869  ·  view source on GitHub ↗
(self: ValuesQuery[Any])

Source from the content-addressed store, hash-verified

1865 return self._execute().__await__() # pylint: disable=E1101
1866
1867 async def __aiter__(self: ValuesQuery[Any]) -> AsyncIterator[dict[str, Any]]:
1868 for val in await self:
1869 yield val
1870
1871 async def _execute(self) -> list[dict] | dict:
1872 result = await self._db.execute_query_dict(*self.query.get_parameterized_sql())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected