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

Method __and__

tortoise/query_utils.py:202–207  ·  view source on GitHub ↗
(self, other: QueryModifier)

Source from the content-addressed store, hash-verified

200 self.having_criterion: Criterion = having_criterion or EmptyCriterion()
201
202 def __and__(self, other: QueryModifier) -> QueryModifier:
203 return self.__class__(
204 where_criterion=_and(self.where_criterion, other.where_criterion),
205 joins=self.joins + other.joins,
206 having_criterion=_and(self.having_criterion, other.having_criterion),
207 )
208
209 def _and_criterion(self) -> Criterion:
210 return _and(self.where_criterion, self.having_criterion)

Callers

nothing calls this directly

Calls 1

_andFunction · 0.85

Tested by

no test coverage detected