MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / correlate

Method correlate

lib/sqlalchemy/sql/selectable.py:7266–7282  ·  view source on GitHub ↗

Apply correlation to the subquery noted by this :class:`_sql.Exists`. .. seealso:: :meth:`_sql.ScalarSelect.correlate`

(
        self,
        *fromclauses: Union[Literal[None, False], _FromClauseArgument],
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

_regroupMethod · 0.95
_cloneMethod · 0.45
correlateMethod · 0.45

Tested by

no test coverage detected