MCPcopy Create free account
hub / github.com/alephdata/aleph / delete

Method delete

aleph/model/common.py:64–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 return cls.all(deleted=deleted).filter_by(id=id).first()
63
64 def delete(self):
65 # hard delete
66 db.session.delete(self)
67
68 def to_dict_dates(self):
69 return {"created_at": self.created_at, "updated_at": self.updated_at}

Callers 15

upgradeFunction · 0.45
grantMethod · 0.45
delete_by_collectionMethod · 0.45
delete_by_collectionMethod · 0.45
delete_by_tableMethod · 0.45
cleanup_deletedMethod · 0.45
delete_by_entityMethod · 0.45
delete_by_collectionMethod · 0.45
delete_by_collectionMethod · 0.45
deleteFunction · 0.45
deleteFunction · 0.45
deleteFunction · 0.45

Calls

no outgoing calls

Tested by 11

test_bookmarks_deleteMethod · 0.36
test_entityset_crudMethod · 0.36
test_deleteMethod · 0.36
test_statusMethod · 0.36
test_delete_entityMethod · 0.36
test_undeleteMethod · 0.36
test_recursive_deleteMethod · 0.36
test_mappings_deleteMethod · 0.36
test_deleteMethod · 0.36