MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / reverse_operate

Method reverse_operate

lib/sqlalchemy/orm/properties.py:677–681  ·  view source on GitHub ↗
(
        self, op: OperatorType, other: Any, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

675 return op(self.__clause_element__(), *other, **kwargs) # type: ignore[no-any-return] # noqa: E501
676
677 def reverse_operate(
678 self, op: OperatorType, other: Any, **kwargs: Any
679 ) -> ColumnElement[Any]:
680 col = self.__clause_element__()
681 return op(col._bind_param(op, other), col, **kwargs) # type: ignore[no-any-return] # noqa: E501
682
683 def found_in_pep593_annotated(self) -> Any:
684 # return a blank mapped_column(). This mapped_column()'s

Callers

nothing calls this directly

Calls 3

__clause_element__Method · 0.95
opFunction · 0.85
_bind_paramMethod · 0.45

Tested by

no test coverage detected