MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / Max

Class Max

tortoise/functions.py:108–116  ·  view source on GitHub ↗

Returns largest value in the column. :samp:`Max("{FIELD_NAME}")`

Source from the content-addressed store, hash-verified

106
107
108class Max(Aggregate):
109 """
110 Returns largest value in the column.
111
112 :samp:`Max("{FIELD_NAME}")`
113 """
114
115 database_func = functions.Max
116 populate_field_object = True
117
118
119class Min(Aggregate):

Callers 5

test_order_by_annotationFunction · 0.90
test_nested_functionsFunction · 0.90
test_concat_functionsFunction · 0.90
test_aggregate_maxFunction · 0.90

Calls

no outgoing calls

Tested by 5

test_order_by_annotationFunction · 0.72
test_nested_functionsFunction · 0.72
test_concat_functionsFunction · 0.72
test_aggregate_maxFunction · 0.72