Sha256: d36f3e697ed047933819abb737772a0d7742b35ca48fe533f8658e7d58949a7f
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
module ActiveReporter module Aggregator class Array < ActiveReporter::Aggregator::Base def aggregate(groups) fail InvalidParamsError, 'array aggregator is only supported in Postgres' unless ActiveReporter.database_type == :postgres super end def function "ARRAY_AGG(#{expression})" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_reporter-0.6.3 | lib/active_reporter/aggregator/array.rb |