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

Function runner

examples/fastapi/_tests.py:175–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174def query_without_app(pk: int) -> int:
175 async def runner() -> bool:
176 async with register_orm():
177 return await Users.filter(id__gt=pk).count()
178
179 return anyio.run(runner)
180

Callers

nothing calls this directly

Calls 2

countMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…