MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / delete

Method delete

src/core/db/repository.py:182–189  ·  view source on GitHub ↗
(self, uid: Any)

Source from the content-addressed store, hash-verified

180 return result.rowcount or 0
181
182 async def delete(self, uid: Any) -> bool:
183 db_obj = await self.find_by_id(uid)
184 if db_obj is None:
185 return False
186
187 async with self.get_session() as session:
188 await session.delete(db_obj)
189 return True
190
191 async def delete_many(self, filters: list[Filter]) -> int:
192 query = delete(self._model)

Callers

nothing calls this directly

Calls 2

find_by_idMethod · 0.95
get_sessionMethod · 0.95

Tested by

no test coverage detected