MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _create_distinct

Method _create_distinct

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

Source from the content-addressed store, hash-verified

3980
3981 @classmethod
3982 def _create_distinct(
3983 cls,
3984 expr: _ColumnExpressionArgument[_T],
3985 ) -> UnaryExpression[_T]:
3986 col_expr: ColumnElement[_T] = coercions.expect(
3987 roles.ExpressionElementRole, expr
3988 )
3989 return UnaryExpression(
3990 col_expr,
3991 operator=operators.distinct_op,
3992 type_=col_expr.type,
3993 )
3994
3995 @classmethod
3996 def _create_bitwise_not(

Callers 1

distinctFunction · 0.80

Calls 1

UnaryExpressionClass · 0.85

Tested by

no test coverage detected