Returns sum value of columns for rows matching the given criteria (applied with `filter` and `exclude` if set before). :return: sum value of columns :rtype: int
(self, columns: Union[str, list[str]])
| 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 | """ |
| 852 | Returns sum value of columns for rows matching the given criteria |
| 853 | (applied with `filter` and `exclude` if set before). |
| 854 | |
| 855 | :return: sum value of columns |
| 856 | :rtype: int |
| 857 | """ |
| 858 | if not isinstance(columns, list): |
| 859 | columns = [columns] |
| 860 | return await self._query_aggr_function(func_name="sum", columns=columns) |
| 861 | |
| 862 | async def avg(self, columns: Union[str, list[str]]) -> Any: |
| 863 | """ |