Skip to main content

BitAnd

This class provides a PostgreSQL-specific implementation of the bitwise AND aggregate function. It is currently deprecated and serves as a wrapper for the standard aggregate version to maintain backward compatibility during the transition period.

Constructor

Signature

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

Parameters

NameTypeDescription
expressionAnyThe expression to be aggregated.
**extradictAdditional keyword arguments for the aggregate function.

Signature

def BitAnd(
expression: django.db.models.Expression,
**extra: dict
) - > null

Parameters

NameTypeDescription
expressiondjango.db.models.ExpressionThe database column or expression to perform the bitwise AND operation upon
**extradictAdditional keyword arguments passed to the parent aggregate constructor