Skip to main content

BitOr

This class provides a PostgreSQL-specific implementation of the bitwise OR aggregate function. It is currently deprecated and serves as a wrapper around the standard aggregate implementation to maintain backward compatibility. Users are encouraged to migrate to the core aggregate version for future compatibility.

Constructor

Signature

def BitOr(
expression: Any,
**extra: dict
)

Parameters

NameTypeDescription
expressionAnyThe database column or expression to perform the bitwise OR operation on.
**extradictAdditional keyword arguments for the aggregate expression.

Signature

def BitOr(
expression: [Expression](../../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression),
**extra: dict
) - > null

Parameters

NameTypeDescription
expression[Expression](../../../../db/models/expressions/expression.md?sid=django_db_models_expressions_expression)The database column or expression to perform the bitwise OR aggregation upon
**extradictAdditional keyword arguments passed to the parent aggregate constructor