MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / wrapper

Function wrapper

tortoise/transactions.py:58–64  ·  view source on GitHub ↗
(func: F)

Source from the content-addressed store, hash-verified

56 """
57
58 def wrapper(func: F) -> F:
59 @wraps(func)
60 async def wrapped(*args, **kwargs) -> T:
61 async with in_transaction(connection_name):
62 return await func(*args, **kwargs)
63
64 return cast(F, wrapped)
65
66 return wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…