MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / run

Method run

piccolo/query/methods/select.py:92–105  ·  view source on GitHub ↗
(
        self,
        node: Optional[str] = None,
        in_pool: bool = True,
    )

Source from the content-addressed store, hash-verified

90 self.query = query
91
92 async def run(
93 self,
94 node: Optional[str] = None,
95 in_pool: bool = True,
96 ) -> OptionalDict:
97 rows = await self.query.run(
98 node=node, in_pool=in_pool, use_callbacks=False
99 )
100 results = rows[0] if rows else None
101
102 modified_response = await self.query.callback_delegate.invoke(
103 results=results, kind=CallbackType.success
104 )
105 return modified_response
106
107
108class SelectList(Proxy["Select", list]):

Callers 4

runMethod · 0.45
runMethod · 0.45
_splice_m2m_rowsMethod · 0.45
runMethod · 0.45

Calls 1

invokeMethod · 0.80

Tested by

no test coverage detected