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

Method where

lib/sqlalchemy/orm/query.py:1864–1874  ·  view source on GitHub ↗

A synonym for :meth:`.Query.filter`. .. versionadded:: 1.4 .. seealso:: :meth:`_sql.Select.where` - v2 equivalent method.

(self, *criterion: _ColumnExpressionArgument[bool])

Source from the content-addressed store, hash-verified

1862 return self
1863
1864 def where(self, *criterion: _ColumnExpressionArgument[bool]) -> Self:
1865 """A synonym for :meth:`.Query.filter`.
1866
1867 .. versionadded:: 1.4
1868
1869 .. seealso::
1870
1871 :meth:`_sql.Select.where` - v2 equivalent method.
1872
1873 """
1874 return self.filter(*criterion)
1875
1876 @_generative
1877 @_assertions(_no_statement_condition, _no_limit_offset)

Callers 15

has_schemaMethod · 0.45
_has_table_queryMethod · 0.45
has_sequenceMethod · 0.45
has_typeMethod · 0.45
get_table_oidMethod · 0.45
get_schema_namesMethod · 0.45
get_view_definitionMethod · 0.45
_columns_queryMethod · 0.45
_table_oids_queryMethod · 0.45
_constraint_queryMethod · 0.45

Calls 1

filterMethod · 0.95