Sha256: b7ac71868c93573b2e2bbf7f6a0ed7a4cd7eb3fa7e10e074d7b3780f6615397a

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

class Upsert
  class Connection
    # @private
    module Postgresql
      def bind_value(v)
        case v
        when Hash
          # you must require 'hstore' from the 'pg-hstore' gem yourself
          ::HStore.dump(v)[1...-1]
        else
          super
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upsert-1.1.3 lib/upsert/connection/postgresql.rb