Returns max value of columns for rows matching the given criteria (applied with `filter` and `exclude` if set before). :return: max value of column(s) :rtype: Any
(self, columns: Union[str, list[str]])
| 824 | return dict(result) if len(result) > 1 else result[columns[0]] # type: ignore |
| 825 | |
| 826 | async def max(self, columns: Union[str, list[str]]) -> Any: # noqa: A003 |
| 827 | """ |
| 828 | Returns max value of columns for rows matching the given criteria |
| 829 | (applied with `filter` and `exclude` if set before). |
| 830 | |
| 831 | :return: max value of column(s) |
| 832 | :rtype: Any |
| 833 | """ |
| 834 | if not isinstance(columns, list): |
| 835 | columns = [columns] |
| 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 | """ |