MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / _set_persisted

Method _set_persisted

cassandra/cqlengine/models.py:491–496  ·  view source on GitHub ↗
(self, force=False)

Source from the content-addressed store, hash-verified

489 return instance
490
491 def _set_persisted(self, force=False):
492 # ensure we don't modify to any values not affected by the last save/update
493 for v in [v for v in self._values.values() if v.changed or force]:
494 v.reset_previous_value()
495 v.explicit = False
496 self._is_persisted = True
497
498 def _can_update(self):
499 """

Callers 3

saveMethod · 0.95
updateMethod · 0.95
_construct_instanceMethod · 0.80

Calls 2

valuesMethod · 0.45
reset_previous_valueMethod · 0.45

Tested by

no test coverage detected