Sha256: 26ed0425d9fafbbd7ca14b2b35395894d62e63a1b46e43abdbdbf6b557c467dd

Contents?: true

Size: 571 Bytes

Versions: 8

Compression:

Stored size: 571 Bytes

Contents

class Upsert
  class Connection
    # @private
    class PG_Connection < Connection
      include Postgresql
      
      def execute(sql, params = nil)
        if params
          Upsert.logger.debug { %{[upsert] #{sql} with #{params.inspect}} }
          metal.exec sql, convert_binary(params)
        else
          Upsert.logger.debug { %{[upsert] #{sql}} }
          metal.exec sql
        end
      end

      def quote_ident(k)
        metal.quote_ident k.to_s
      end

      def binary(v)
        { :value => v.value, :format => 1 }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
upsert-2.0.1 lib/upsert/connection/PG_Connection.rb
upsert-2.0.0 lib/upsert/connection/PG_Connection.rb
upsert-1.2.0 lib/upsert/connection/PG_Connection.rb
upsert-1.1.7 lib/upsert/connection/PG_Connection.rb
upsert-1.1.6 lib/upsert/connection/PG_Connection.rb
upsert-1.1.5 lib/upsert/connection/PG_Connection.rb
upsert-1.1.4 lib/upsert/connection/PG_Connection.rb
upsert-1.1.3 lib/upsert/connection/PG_Connection.rb