Sha256: 63f4eb77018a97cbd68a0f2d00e1051dceacb9dce993978bbdc255228bd935fc
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 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 def in_transaction? ![PG::PQTRANS_IDLE, PG::PQTRANS_UNKNOWN].include?(metal.transaction_status) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upsert-2.2.1 | lib/upsert/connection/PG_Connection.rb |
upsert-2.2.0 | lib/upsert/connection/PG_Connection.rb |