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

Class Coalesce

tortoise/functions.py:30–37  ·  view source on GitHub ↗

Provides a default value if field is null. :samp:`Coalesce("{FIELD_NAME}", {DEFAULT_VALUE})`

Source from the content-addressed store, hash-verified

28
29
30class Coalesce(Function):
31 """
32 Provides a default value if field is null.
33
34 :samp:`Coalesce("{FIELD_NAME}", {DEFAULT_VALUE})`
35 """
36
37 database_func = functions.Coalesce
38
39
40class Lower(Function):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…