MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _create_all

Method _create_all

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

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(

Callers 2

allMethod · 0.80
all_Function · 0.80

Calls 2

CollectionAggregateClass · 0.85
self_groupMethod · 0.45

Tested by

no test coverage detected