MCPcopy
hub / github.com/django/django / pipes_concat_sql

Method pipes_concat_sql

django/db/models/functions/text.py:76–84  ·  view source on GitHub ↗
(self, compiler, connection, **extra_context)

Source from the content-addressed store, hash-verified

74 function = "CONCAT"
75
76 def pipes_concat_sql(self, compiler, connection, **extra_context):
77 coalesced = self.coalesce()
78 return super(ConcatPair, coalesced).as_sql(
79 compiler,
80 connection,
81 template="(%(expressions)s)",
82 arg_joiner=" || ",
83 **extra_context,
84 )
85
86 as_sqlite = pipes_concat_sql
87

Callers 1

as_postgresqlMethod · 0.80

Calls 2

coalesceMethod · 0.95
as_sqlMethod · 0.45

Tested by

no test coverage detected