(self, other: QueryModifier)
| 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) |