Class: Babik::QuerySet::CountDistinct

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

Overview

Count distinct operation. Compute the count distinct of a set of values.

Constant Summary collapse

SQL_OPERATION =
'COUNT(DISTINCT(?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