MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _create_any

Method _create_any

lib/sqlalchemy/sql/elements.py:4053–4067  ·  view source on GitHub ↗

create CollectionAggregate for the legacy ARRAY.Comparator.any() method

(
        cls, expr: _ColumnExpressionArgument[_T]
    )

Source from the content-addressed store, hash-verified

4051
4052 @classmethod
4053 def _create_any(
4054 cls, expr: _ColumnExpressionArgument[_T]
4055 ) -> CollectionAggregate[bool]:
4056 """create CollectionAggregate for the legacy
4057 ARRAY.Comparator.any() method"""
4058 col_expr: ColumnElement[_T] = coercions.expect(
4059 roles.ExpressionElementRole,
4060 expr,
4061 )
4062 col_expr = col_expr.self_group()
4063 return CollectionAggregate(
4064 col_expr,
4065 operator=operators.any_op,
4066 type_=type_api.BOOLEANTYPE,
4067 )
4068
4069 @classmethod
4070 def _create_all(

Callers 2

anyMethod · 0.80
any_Function · 0.80

Calls 2

CollectionAggregateClass · 0.85
self_groupMethod · 0.45

Tested by

no test coverage detected