Class: Babik::QuerySet::Avg
- Inherits:
-
AbstractAggregationFunction
- Object
- AbstractAggregationFunction
- Babik::QuerySet::Avg
- Includes:
- StandardSqlOperation
- Defined in:
- lib/babik/queryset/components/aggregation.rb
Overview
Average operation. Compute the mean of a set of values.
Constant Summary collapse
- SQL_OPERATION =
'AVG(?field)'
Instance Attribute Summary
Attributes inherited from AbstractAggregationFunction
#field_name, #model, #selection
Method Summary
Methods included from StandardSqlOperation
Methods inherited from AbstractAggregationFunction
db_adapter, #initialize, #left_joins_by_alias, #prepare, #sql
Constructor Details
This class inherits a constructor from Babik::QuerySet::AbstractAggregationFunction