MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / All

Function All

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

A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.all` 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

70
71
72def All(
73 other: typing_Any,
74 arrexpr: _ColumnExpressionArgument[_T],
75 operator: OperatorType = operators.eq,
76) -> ColumnElement[bool]:
77 """A synonym for the ARRAY-level :meth:`.ARRAY.Comparator.all` method.
78 See that method for details.
79
80 .. deprecated:: 2.1
81
82 The :meth:`_types.ARRAY.Comparator.any` and
83 :meth:`_types.ARRAY.Comparator.all` methods for arrays are deprecated
84 for removal, along with the PG-specific :func:`_postgresql.Any` and
85 :func:`_postgresql.All` functions. See :func:`_sql.any_` and
86 :func:`_sql.all_` functions for modern use.
87
88 """
89
90 return arrexpr.all(other, operator) # type: ignore[no-any-return, union-attr] # noqa: E501
91
92
93class array(expression.ExpressionClauseList[_T]):

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected