MCPcopy
hub / github.com/tortoise/tortoise-orm / Sum

Class Sum

tortoise/functions.py:97–105  ·  view source on GitHub ↗

Adds up all the values for that column. :samp:`Sum("{FIELD_NAME}")`

Source from the content-addressed store, hash-verified

95
96
97class Sum(Aggregate):
98 """
99 Adds up all the values for that column.
100
101 :samp:`Sum("{FIELD_NAME}")`
102 """
103
104 database_func = functions.Sum
105 populate_field_object = True
106
107
108class Max(Aggregate):

Calls

no outgoing calls