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])
| 1222 | |
| 1223 | |
| 1224 | def bitwise_not(expr: _ColumnExpressionArgument[_T]) -> UnaryExpression[_T]: |
| 1225 | """Produce a unary bitwise NOT clause, typically via the ``~`` operator. |
| 1226 | |
| 1227 | Not to be confused with boolean negation :func:`_sql.not_`. |
| 1228 | |
| 1229 | .. versionadded:: 2.0.2 |
| 1230 | |
| 1231 | .. seealso:: |
| 1232 | |
| 1233 | :ref:`operators_bitwise` |
| 1234 | |
| 1235 | |
| 1236 | """ |
| 1237 | if isinstance(expr, operators.ColumnOperators): |
| 1238 | return expr.bitwise_not() |
| 1239 | else: |
| 1240 | return UnaryExpression._create_bitwise_not(expr) |
| 1241 | |
| 1242 | |
| 1243 | def extract(field: str, expr: _ColumnExpressionArgument[Any]) -> Extract: |
nothing calls this directly
no test coverage detected