Sha256: c9537779b8fac11ed7c01e2a68400643b4f28fb5304d323b14111304bc5b1095
Contents?: true
Size: 344 Bytes
Versions: 6
Compression:
Stored size: 344 Bytes
Contents
module Repor module Aggregators class ArrayAggregator < BaseAggregator def aggregation(groups) unless Repor.database_type == :postgres fail InvalidParamsError, "array agg is only supported in Postgres" end groups.select("ARRAY_AGG(#{expression}) AS #{sql_value_name}") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems