MCPcopy
hub / github.com/tortoise/tortoise-orm / _as_single

Method _as_single

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

Source from the content-addressed store, hash-verified

482 return queryset
483
484 def _as_single(self) -> QuerySetSingle[MODEL | None]:
485 self._single = True
486 self._limit = 1
487 return cast(QuerySetSingle[MODEL | None], self)
488
489 def latest(self, *orderings: str) -> QuerySetSingle[MODEL | None]:
490 """

Callers 4

latestMethod · 0.80
earliestMethod · 0.80
firstMethod · 0.80
lastMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected