Exemple #1
0
 def update_entry(self, entry: DatabaseEntry):
     self.log("Updating entry: " + str(entry.to_dict()))
     result_id = MongoDBOperations.insert(self.collection, entry)
     if result_id != None:
         self.id_map[result_id] = entry.key()
 def update_entry(self, entry: DatabaseEntry):
     self.log("Updating entry: " + str(entry.to_dict()))
     self.client.set_entry(entry)
Exemple #3
0
def _insert_check(manager: DatabaseManager, entry: DatabaseEntry):
    manager.update_entry(entry)
    assert manager.get_entry(entry.key()).to_dict() == entry.to_dict()