Sha256: 278baaa1e2ccfe8975f46790220ac5fae16dbec45121f3b205dba8520a364dec
Contents?: true
Size: 359 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_reporter-0.7.1 | lib/active_reporter/aggregator/array.rb |
active_reporter-0.6.5 | lib/active_reporter/aggregator/array.rb |
active_reporter-0.6.4 | lib/active_reporter/aggregator/array.rb |