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

Function query_without_app

examples/fastapi/_tests.py:174–179  ·  view source on GitHub ↗
(pk: int)

Source from the content-addressed store, hash-verified

172
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
181
182def test_query_without_app():

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…