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

Method delete_by_table

aleph/model/mapping.py:99–102  ·  view source on GitHub ↗
(cls, entity_id)

Source from the content-addressed store, hash-verified

97
98 @classmethod
99 def delete_by_table(cls, entity_id):
100 pq = db.session.query(cls)
101 pq = pq.filter(cls.table_id == entity_id)
102 pq.delete(synchronize_session=False)
103
104 @classmethod
105 def create(cls, query, table_id, collection, role_id, entityset_id=None):

Callers 1

prune_entityFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected