Module: Babik::QuerySet::StandardSqlOperation

Included in:
Avg, Count, CountDistinct, Max, Min, Sum
Defined in:
lib/babik/queryset/components/aggregation.rb

Overview

Mixin that injects the sql_operation method in aggregations with the same SQL syntax independently of the database adapter (SUM, MAX, MIN, etc.)

Instance Method Summary collapse

Instance Method Details

#sql_operationObject



96
97
98
# File 'lib/babik/queryset/components/aggregation.rb', line 96

def sql_operation
  self.class::SQL_OPERATION
end