Sha256: b7da25ebb6f12de8d3bf4e80cbf83b5172abbe78ee494270f44cebb56a8332da

Contents?: true

Size: 236 Bytes

Versions: 19

Compression:

Stored size: 236 Bytes

Contents

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

      def to_sql
        "json_build_object(#{@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_build_object.rb
pg_serializable-3.0.2 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-3.0.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-3.0.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-2.1.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-2.1.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-2.0.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.4.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.3.2 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.3.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.3.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.2.2 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.2.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.2.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.1.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.0.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-1.0.0 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-0.1.1 lib/pg_serializable/nodes/json_build_object.rb
pg_serializable-0.1.0 lib/pg_serializable/nodes/json_build_object.rb