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

Method _can_update

cassandra/cqlengine/models.py:498–508  ·  view source on GitHub ↗

Called by the save function to check if this should be persisted with update or insert :return:

(self)

Source from the content-addressed store, hash-verified

496 self._is_persisted = True
497
498 def _can_update(self):
499 """
500 Called by the save function to check if this should be
501 persisted with update or insert
502
503 :return:
504 """
505 if not self._is_persisted:
506 return False
507
508 return all([not self._values[k].changed for k in self._primary_keys])
509
510 @classmethod
511 def _get_keyspace(cls):

Callers 2

test_success_caseMethod · 0.80
saveMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_success_caseMethod · 0.64