Sha256: 0185941c2b0a615cf777df1eb7944e188a13737b38b5652200f1c87b66eecad6

Contents?: true

Size: 211 Bytes

Versions: 19

Compression:

Stored size: 211 Bytes

Contents

module PgSerializable
  module Nodes
    class JsonArray < Base
      def initialize(*args)
        @args = args
      end

      def to_sql
        "\'[#{@args.join(', ')}]\'::json"
      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_array.rb
pg_serializable-3.0.2 lib/pg_serializable/nodes/json_array.rb
pg_serializable-3.0.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-3.0.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-2.1.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-2.1.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-2.0.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.4.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.3.2 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.3.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.3.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.2.2 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.2.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.2.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.1.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.0.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-1.0.0 lib/pg_serializable/nodes/json_array.rb
pg_serializable-0.1.1 lib/pg_serializable/nodes/json_array.rb
pg_serializable-0.1.0 lib/pg_serializable/nodes/json_array.rb