Sha256: 56ef6270512f3b3136d92851a99ee60e7d999700ad2b40d3fc09e63e37c28a7e

Contents?: true

Size: 221 Bytes

Versions: 6

Compression:

Stored size: 221 Bytes

Contents

module Repor
  module Aggregators
    class CountAggregator < BaseAggregator
      def aggregation(groups)
        groups.select("COUNT(DISTINCT #{report.table_name}.id) AS #{sql_value_name}")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
repor-0.1.0 lib/repor/aggregators/count_aggregator.rb
repor-0.0.5 lib/repor/aggregators/count_aggregator.rb
repor-0.0.4 lib/repor/aggregators/count_aggregator.rb
repor-0.0.3 lib/repor/aggregators/count_aggregator.rb
repor-0.0.2 lib/repor/aggregators/count_aggregator.rb
repor-0.0.1 lib/repor/aggregators/count_aggregator.rb