MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / changed

Method changed

cassandra/cqlengine/columns.py:982–992  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

980class UDTValueManager(BaseValueManager):
981 @property
982 def changed(self):
983 if self.explicit:
984 return self.value != self.previous_value
985
986 default_value = self.column.get_default()
987 if not self.column._val_is_null(default_value):
988 return self.value != default_value
989 elif self.previous_value is None:
990 return not self.column._val_is_null(self.value) and self.value.has_changed_fields()
991
992 return False
993
994 def reset_previous_value(self):
995 if self.value is not None:

Callers

nothing calls this directly

Calls 3

get_defaultMethod · 0.80
has_changed_fieldsMethod · 0.80
_val_is_nullMethod · 0.45

Tested by

no test coverage detected