Apply correlation to the subquery noted by this :class:`_sql.Exists`. .. seealso:: :meth:`_sql.ScalarSelect.correlate`
(
self,
*fromclauses: Union[Literal[None, False], _FromClauseArgument],
)
| 7264 | return Select(self) |
| 7265 | |
| 7266 | def correlate( |
| 7267 | self, |
| 7268 | *fromclauses: Union[Literal[None, False], _FromClauseArgument], |
| 7269 | ) -> Self: |
| 7270 | """Apply correlation to the subquery noted by this |
| 7271 | :class:`_sql.Exists`. |
| 7272 | |
| 7273 | .. seealso:: |
| 7274 | |
| 7275 | :meth:`_sql.ScalarSelect.correlate` |
| 7276 | |
| 7277 | """ |
| 7278 | e = self._clone() |
| 7279 | e.element = self._regroup( |
| 7280 | lambda element: element.correlate(*fromclauses) |
| 7281 | ) |
| 7282 | return e |
| 7283 | |
| 7284 | def correlate_except( |
| 7285 | self, |