MCPcopy Create free account
hub / github.com/ormar-orm/ormar / first

Function first

benchmarks/test_benchmark_get.py:87–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85async def test_first(aio_benchmark, num_models: int, authors_in_db: list[Author]):
86 @aio_benchmark
87 async def first():
88 return await Author.objects.first()
89
90 author = first()
91 assert author == authors_in_db[0]

Callers 1

test_firstFunction · 0.85

Calls 1

firstMethod · 0.45

Tested by

no test coverage detected