Sha256: 05c463b36224f8dd52d3fae871b327443f1c72e262df598c305401f632453e3b

Contents?: true

Size: 219 Bytes

Versions: 19

Compression:

Stored size: 219 Bytes

Contents

module PgSerializable
  module Nodes
    class JsonAgg < Base
      def initialize(expression)
        @expression = expression
      end

      def to_sql
        "json_agg(#{@expression})"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pg_serializable-3.1.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-3.0.2 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-3.0.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-3.0.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-2.1.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-2.1.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-2.0.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.4.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.3.2 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.3.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.3.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.2.2 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.2.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.2.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.1.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.0.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-1.0.0 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-0.1.1 lib/pg_serializable/nodes/json_agg.rb
pg_serializable-0.1.0 lib/pg_serializable/nodes/json_agg.rb