MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Any

Function Any

lib/sqlalchemy/dialects/postgresql/array.py:50–69  ·  view source on GitHub ↗

A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.any` method. See that method for details. .. deprecated:: 2.1 The :meth:`_types.ARRAY.Comparator.any` and :meth:`_types.ARRAY.Comparator.all` methods for arrays are deprecated for removal, along with the PG-spec

(
    other: typing_Any,
    arrexpr: _ColumnExpressionArgument[_T],
    operator: OperatorType = operators.eq,
)

Source from the content-addressed store, hash-verified

48
49
50def Any(
51 other: typing_Any,
52 arrexpr: _ColumnExpressionArgument[_T],
53 operator: OperatorType = operators.eq,
54) -> ColumnElement[bool]:
55 """A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.any` method.
56 See that method for details.
57
58 .. deprecated:: 2.1
59
60 The :meth:`_types.ARRAY.Comparator.any` and
61 :meth:`_types.ARRAY.Comparator.all` methods for arrays are deprecated
62 for removal, along with the PG-specific :func:`_postgresql.Any` and
63 :func:`_postgresql.All` functions. See :func:`_sql.any_` and
64 :func:`_sql.all_` functions for modern use.
65
66
67 """
68
69 return arrexpr.any(other, operator) # type: ignore[no-any-return, union-attr] # noqa: E501
70
71
72def All(

Callers

nothing calls this directly

Calls 1

anyMethod · 0.45

Tested by

no test coverage detected