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

Method as_sql

django/db/models/aggregates.py:232–237  ·  view source on GitHub ↗
(self, compiler, connection, **extra_context)

Source from the content-addressed store, hash-verified

230 window_compatible = False
231
232 def as_sql(self, compiler, connection, **extra_context):
233 if not connection.features.supports_any_value:
234 raise NotSupportedError(
235 "ANY_VALUE is not supported on this database backend."
236 )
237 return super().as_sql(compiler, connection, **extra_context)
238
239
240class Avg(FixDurationInputMixin, NumericOutputFieldMixin, Aggregate):

Callers 8

as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_sqlMethod · 0.45
as_mysqlMethod · 0.45
as_oracleMethod · 0.45
as_mysqlMethod · 0.45
as_sqliteMethod · 0.45

Calls 1

NotSupportedErrorClass · 0.90

Tested by

no test coverage detected