MCPcopy
hub / github.com/tortoise/tortoise-orm / execute_delete

Method execute_delete

tortoise/backends/base/executor.py:473–478  ·  view source on GitHub ↗
(self, instance: type[Model] | Model)

Source from the content-addressed store, hash-verified

471 )[0]
472
473 async def execute_delete(self, instance: type[Model] | Model) -> int:
474 return (
475 await self.db.execute_query(
476 self.delete_query, [self.model._meta.pk.to_db_value(instance.pk, instance)]
477 )
478 )[0]
479
480 async def _prefetch_reverse_relation(
481 self,

Callers 1

deleteMethod · 0.80

Calls 2

execute_queryMethod · 0.45
to_db_valueMethod · 0.45

Tested by

no test coverage detected