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

Method exists

tortoise/queryset.py:797–809  ·  view source on GitHub ↗

Return True/False whether queryset exists.

(self)

Source from the content-addressed store, hash-verified

795 )
796
797 def exists(self) -> ExistsQuery:
798 """
799 Return True/False whether queryset exists.
800 """
801 return ExistsQuery(
802 db=self._db,
803 model=self.model,
804 q_objects=self._q_objects,
805 annotations=self._annotations,
806 custom_filters=self._custom_filters,
807 force_indexes=self._force_indexes,
808 use_indexes=self._use_indexes,
809 )
810
811 def all(self) -> QuerySet[MODEL]:
812 """

Callers

nothing calls this directly

Calls 1

ExistsQueryClass · 0.85

Tested by

no test coverage detected