Method: Sequel::SQL::StringAgg#distinct
- Defined in:
- lib/sequel/extensions/string_agg.rb
#distinct ⇒ Object
Return a modified StringAgg that uses distinct expressions
174 175 176 177 178 179 |
# File 'lib/sequel/extensions/string_agg.rb', line 174 def distinct self.class.new(@expr, @separator) do |sa| sa.instance_variable_set(:@order_expr, @order_expr) sa.instance_variable_set(:@distinct, true) end end |