MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / filter

Method filter

lib/sqlalchemy/sql/dml.py:1556–1563  ·  view source on GitHub ↗

A synonym for the :meth:`.where` method. .. versionadded:: 1.4

(self, *criteria: roles.ExpressionElementRole[Any])

Source from the content-addressed store, hash-verified

1554 return self
1555
1556 def filter(self, *criteria: roles.ExpressionElementRole[Any]) -> Self:
1557 """A synonym for the :meth:`.where` method.
1558
1559 .. versionadded:: 1.4
1560
1561 """
1562
1563 return self.where(*criteria)
1564
1565 def filter_by(self, **kwargs: Any) -> Self:
1566 r"""Apply the given filtering criterion as a WHERE clause

Callers 1

filter_byMethod · 0.95

Calls 1

whereMethod · 0.95

Tested by

no test coverage detected