Class: ActiveRecord::ConnectionAdapters::YugabyteDB::OID::Bytea
- Inherits:
-
Type::Binary
- Object
- Type::Binary
- ActiveRecord::ConnectionAdapters::YugabyteDB::OID::Bytea
- Defined in:
- lib/active_record/connection_adapters/yugabytedb/oid/bytea.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#deserialize(value) ⇒ Object
8 9 10 11 12 |
# File 'lib/active_record/connection_adapters/yugabytedb/oid/bytea.rb', line 8 def deserialize(value) return if value.nil? return value.to_s if value.is_a?(Type::Binary::Data) YSQL::Connection.unescape_bytea(super) end |