MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __invert__

Method __invert__

lib/sqlalchemy/sql/elements.py:771–777  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

769 return compiled_sql, extracted_params, param_dict, cache_hit
770
771 def __invert__(self):
772 # undocumented element currently used by the ORM for
773 # relationship.contains()
774 if hasattr(self, "negation_clause"):
775 return self.negation_clause
776 else:
777 return self._negate()
778
779 def _negate(self) -> ClauseElement:
780 # TODO: this code is uncovered and in all likelihood is not included

Callers

nothing calls this directly

Calls 1

_negateMethod · 0.95

Tested by

no test coverage detected