create CollectionAggregate for the legacy ARRAY.Comparator.all() method
(
cls, expr: _ColumnExpressionArgument[_T]
)
| 4068 | |
| 4069 | @classmethod |
| 4070 | def _create_all( |
| 4071 | cls, expr: _ColumnExpressionArgument[_T] |
| 4072 | ) -> CollectionAggregate[bool]: |
| 4073 | """create CollectionAggregate for the legacy |
| 4074 | ARRAY.Comparator.all() method""" |
| 4075 | col_expr: ColumnElement[_T] = coercions.expect( |
| 4076 | roles.ExpressionElementRole, |
| 4077 | expr, |
| 4078 | ) |
| 4079 | col_expr = col_expr.self_group() |
| 4080 | return CollectionAggregate( |
| 4081 | col_expr, |
| 4082 | operator=operators.all_op, |
| 4083 | type_=type_api.BOOLEANTYPE, |
| 4084 | ) |
| 4085 | |
| 4086 | @util.preload_module("sqlalchemy.sql.sqltypes") |
| 4087 | def _bind_param( |
no test coverage detected