Sha256: f5bdd46d7e4e7badc9fdb22edc79035a5972fd50ec0f3369acd69455c7721e56
Contents?: true
Size: 352 Bytes
Versions: 9
Compression:
Stored size: 352 Bytes
Contents
module ActiveReporter module Aggregator class Array < ActiveReporter::Aggregator::Base def aggregate(groups) fail InvalidParamsError, 'array agg is only supported in Postgres' unless ActiveReporter.database_type == :postgres super end def function "ARRAY_AGG(#{expression})" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems