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

Method _execute_query

ormar/models/model.py:32–39  ·  view source on GitHub ↗
(self, expr: Executable, is_select: bool = False)

Source from the content-addressed store, hash-verified

30 return f"{self.__class__.__name__}({str(_repr)})"
31
32 async def _execute_query(self, expr: Executable, is_select: bool = False) -> Any:
33 async with self.ormar_config.database.get_query_executor() as executor:
34 row = (
35 await executor.fetch_one(expr)
36 if is_select
37 else await executor.execute(expr)
38 )
39 return row
40
41 async def _emit_signal(self, name: str, **kwargs: Any) -> None:
42 """

Callers 5

upsertMethod · 0.95
saveMethod · 0.95
updateMethod · 0.95
deleteMethod · 0.95
loadMethod · 0.95

Calls 3

get_query_executorMethod · 0.80
fetch_oneMethod · 0.80
executeMethod · 0.80

Tested by

no test coverage detected