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

Function bitwise_not

lib/sqlalchemy/sql/_elements_constructors.py:1161–1175  ·  view source on GitHub ↗

Produce a unary bitwise NOT clause, typically via the ``~`` operator. Not to be confused with boolean negation :func:`_sql.not_`. .. versionadded:: 2.0.2 .. seealso:: :ref:`operators_bitwise`

(expr: _ColumnExpressionArgument[_T])

Source from the content-addressed store, hash-verified

1159
1160
1161def bitwise_not(expr: _ColumnExpressionArgument[_T]) -> UnaryExpression[_T]:
1162 """Produce a unary bitwise NOT clause, typically via the ``~`` operator.
1163
1164 Not to be confused with boolean negation :func:`_sql.not_`.
1165
1166 .. versionadded:: 2.0.2
1167
1168 .. seealso::
1169
1170 :ref:`operators_bitwise`
1171
1172
1173 """
1174
1175 return UnaryExpression._create_bitwise_not(expr)
1176
1177
1178def extract(field: str, expr: _ColumnExpressionArgument[Any]) -> Extract:

Callers

nothing calls this directly

Calls 1

_create_bitwise_notMethod · 0.80

Tested by

no test coverage detected