MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / correlate_except

Method correlate_except

lib/sqlalchemy/sql/selectable.py:6992–7008  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

6990 return e
6991
6992 def correlate_except(
6993 self,
6994 *fromclauses: Union[Literal[None, False], _FromClauseArgument],
6995 ) -> Self:
6996 """Apply correlation to the subquery noted by this
6997 :class:`_sql.Exists`.
6998
6999 .. seealso::
7000
7001 :meth:`_sql.ScalarSelect.correlate_except`
7002
7003 """
7004 e = self._clone()
7005 e.element = self._regroup(
7006 lambda element: element.correlate_except(*fromclauses)
7007 )
7008 return e
7009
7010 def select_from(self, *froms: _FromClauseArgument) -> Self:
7011 """Return a new :class:`_expression.Exists` construct,

Callers

nothing calls this directly

Calls 3

_regroupMethod · 0.95
_cloneMethod · 0.45
correlate_exceptMethod · 0.45

Tested by

no test coverage detected