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

Method _create_distinct

lib/sqlalchemy/sql/elements.py:3697–3708  ·  view source on GitHub ↗
(
        cls,
        expr: _ColumnExpressionArgument[_T],
    )

Source from the content-addressed store, hash-verified

3695
3696 @classmethod
3697 def _create_distinct(
3698 cls,
3699 expr: _ColumnExpressionArgument[_T],
3700 ) -> UnaryExpression[_T]:
3701 col_expr: ColumnElement[_T] = coercions.expect(
3702 roles.ExpressionElementRole, expr
3703 )
3704 return UnaryExpression(
3705 col_expr,
3706 operator=operators.distinct_op,
3707 type_=col_expr.type,
3708 )
3709
3710 @classmethod
3711 def _create_bitwise_not(

Callers 1

distinctFunction · 0.80

Calls 1

UnaryExpressionClass · 0.85

Tested by

no test coverage detected