Class: Babik::QuerySet::Sum

Inherits:
AbstractAggregationFunction show all
Includes:
StandardSqlOperation
Defined in:
lib/babik/queryset/components/aggregation.rb

Overview

Sum operation. Compute the sum of a set of values.

Constant Summary collapse

SQL_OPERATION =
'SUM(?field)'

Instance Attribute Summary

Attributes inherited from AbstractAggregationFunction

#field_name, #model, #selection

Method Summary

Methods included from StandardSqlOperation

#sql_operation

Methods inherited from AbstractAggregationFunction

db_adapter, #initialize, #left_joins_by_alias, #prepare, #sql

Constructor Details

This class inherits a constructor from Babik::QuerySet::AbstractAggregationFunction