MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / where

Method where

lib/sqlalchemy/sql/selectable.py:7094–7102  ·  view source on GitHub ↗

Apply a WHERE clause to the SELECT statement referred to by this :class:`_expression.ScalarSelect`.

(self, crit: _ColumnExpressionArgument[bool])

Source from the content-addressed store, hash-verified

7092
7093 @_generative
7094 def where(self, crit: _ColumnExpressionArgument[bool]) -> Self:
7095 """Apply a WHERE clause to the SELECT statement referred to
7096 by this :class:`_expression.ScalarSelect`.
7097
7098 """
7099 self.element = cast("Select[Unpack[TupleAny]]", self.element).where(
7100 crit
7101 )
7102 return self
7103
7104 def self_group(self, against: Optional[OperatorType] = None) -> Self:
7105 return self

Callers

nothing calls this directly

Calls 2

castFunction · 0.70
whereMethod · 0.45

Tested by

no test coverage detected