MCPcopy
hub / github.com/ormar-orm/ormar / run_query

Function run_query

docs_src/models/docs007.py:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28@create_drop_database(base_config=ormar_base_config)
29async def run_query():
30 course = Course(name="Painting for dummies", completed=False)
31 await course.save()
32
33 await Course.objects.create(name="Painting for dummies", completed=False)
34
35
36asyncio.run(run_query())

Callers 1

docs007.pyFile · 0.70

Calls 3

saveMethod · 0.80
CourseClass · 0.70
createMethod · 0.45

Tested by

no test coverage detected