MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / postgres_array_length

Function postgres_array_length

tortoise/contrib/postgres/array_functions.py:29–31  ·  view source on GitHub ↗

Returns a criterion that checks if array length equals the given value

(field: Term, value: int)

Source from the content-addressed store, hash-verified

27
28
29def postgres_array_length(field: Term, value: int) -> Criterion:
30 """Returns a criterion that checks if array length equals the given value"""
31 return Function("array_length", field, 1).eq(value)

Callers

nothing calls this directly

Calls 1

FunctionClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…