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

Method _create_all

lib/sqlalchemy/sql/elements.py:3785–3799  ·  view source on GitHub ↗

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

(
        cls, expr: _ColumnExpressionArgument[_T]
    )

Source from the content-addressed store, hash-verified

3783
3784 @classmethod
3785 def _create_all(
3786 cls, expr: _ColumnExpressionArgument[_T]
3787 ) -> CollectionAggregate[bool]:
3788 """create CollectionAggregate for the legacy
3789 ARRAY.Comparator.all() method"""
3790 col_expr: ColumnElement[_T] = coercions.expect(
3791 roles.ExpressionElementRole,
3792 expr,
3793 )
3794 col_expr = col_expr.self_group()
3795 return CollectionAggregate(
3796 col_expr,
3797 operator=operators.all_op,
3798 type_=type_api.BOOLEANTYPE,
3799 )
3800
3801 @util.preload_module("sqlalchemy.sql.sqltypes")
3802 def _bind_param(

Callers 2

allMethod · 0.80
all_Function · 0.80

Calls 2

CollectionAggregateClass · 0.85
self_groupMethod · 0.45

Tested by

no test coverage detected