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

Method _create_any

lib/sqlalchemy/sql/elements.py:3768–3782  ·  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

3766
3767 @classmethod
3768 def _create_any(
3769 cls, expr: _ColumnExpressionArgument[_T]
3770 ) -> CollectionAggregate[bool]:
3771 """create CollectionAggregate for the legacy
3772 ARRAY.Comparator.any() method"""
3773 col_expr: ColumnElement[_T] = coercions.expect(
3774 roles.ExpressionElementRole,
3775 expr,
3776 )
3777 col_expr = col_expr.self_group()
3778 return CollectionAggregate(
3779 col_expr,
3780 operator=operators.any_op,
3781 type_=type_api.BOOLEANTYPE,
3782 )
3783
3784 @classmethod
3785 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