MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / comparator

Method comparator

lib/sqlalchemy/orm/attributes.py:681–688  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

679
680 @util.memoized_property
681 def comparator(self):
682 if callable(self._comparator):
683 self._comparator = self._comparator()
684 if self._adapt_to_entity:
685 self._comparator = self._comparator.adapt_to_entity(
686 self._adapt_to_entity
687 )
688 return self._comparator
689
690 def adapt_to_entity(self, adapt_to_entity):
691 return self.__class__(

Callers

nothing calls this directly

Calls 2

_comparatorMethod · 0.45
adapt_to_entityMethod · 0.45

Tested by

no test coverage detected