MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / bound_to_fall

Function bound_to_fall

examples/transactions.py:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38 @atomic()
39 async def bound_to_fall():
40 event = await Event.create(name="Test")
41 await Event.filter(id=event.id).update(name="Updated name")
42 saved_event = await Event.filter(name="Updated name").first()
43 print(saved_event.name)
44 raise OperationalError()
45
46 try:
47 await bound_to_fall()

Callers 1

runFunction · 0.70

Calls 5

OperationalErrorClass · 0.90
updateMethod · 0.80
createMethod · 0.45
filterMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…