create CollectionAggregate for the legacy ARRAY.Comparator.all() method
(
cls, expr: _ColumnExpressionArgument[_T]
)
| 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( |
no test coverage detected