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

Method min

ormar/queryset/queryset.py:838–848  ·  view source on GitHub ↗

Returns min value of columns for rows matching the given criteria (applied with `filter` and `exclude` if set before). :return: min value of column(s) :rtype: Any

(self, columns: Union[str, list[str]])

Source from the content-addressed store, hash-verified

836 return await self._query_aggr_function(func_name="max", columns=columns)
837
838 async def min(self, columns: Union[str, list[str]]) -> Any: # noqa: A003
839 """
840 Returns min value of columns for rows matching the given criteria
841 (applied with `filter` and `exclude` if set before).
842
843 :return: min value of column(s)
844 :rtype: Any
845 """
846 if not isinstance(columns, list):
847 columns = [columns]
848 return await self._query_aggr_function(func_name="min", columns=columns)
849
850 async def sum(self, columns: Union[str, list[str]]) -> Any: # noqa: A003
851 """

Callers 9

test_schema_extractionFunction · 0.45
test_min_methodFunction · 0.45
test_queryset_methodFunction · 0.45
aggregationsFunction · 0.45
min_Function · 0.45

Calls 1

_query_aggr_functionMethod · 0.95