Sha256: 9657b6bcf139b37869a9b23db9e91d3c953537c508d555db0c51da61da6dbcc0

Contents?: true

Size: 410 Bytes

Versions: 16

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module CipherStashPG
      module OID # :nodoc:
        class Bytea < Type::Binary # :nodoc:
          def deserialize(value)
            return if value.nil?
            return value.to_s if value.is_a?(Type::Binary::Data)
            PG::Connection.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 11 versions & 1 rubygems

Version Path
activerecord-cipherstash-pg-adapter-0.8.5 lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.8.4 lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.8.3 lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.8.2 lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.6.1 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.6.1 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.6.0 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.6.0 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.5.0 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.5.0 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.4.0 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.4.0 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.3.0 lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.3.0 lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.2.0 lib/active_record/connection_adapters/cipherstash_pg/oid/bytea.rb
activerecord-cipherstash-pg-adapter-0.1.0 lib/active_record/connection_adapters/cipherstash_pg/oid/bytea.rb