MCPcopy
hub / github.com/django/django / as_sql

Method as_sql

django/contrib/gis/db/models/aggregates.py:21–30  ·  view source on GitHub ↗
(self, compiler, connection, function=None, **extra_context)

Source from the content-addressed store, hash-verified

19 return self.output_field_class(self.source_expressions[0].output_field.srid)
20
21 def as_sql(self, compiler, connection, function=None, **extra_context):
22 # this will be called again in parent, but it's needed now - before
23 # we get the spatial_aggregate_name
24 connection.ops.check_expression_support(self)
25 return super().as_sql(
26 compiler,
27 connection,
28 function=function or connection.ops.spatial_aggregate_name(self.name),
29 **extra_context,
30 )
31
32 def as_oracle(self, compiler, connection, **extra_context):
33 if not self.is_extent:

Callers 1

as_oracleMethod · 0.95

Calls 2

Tested by

no test coverage detected