Class: Cequel::Type::Blob
Overview
‘blob` columns store arbitrary bytes of data, represented as 8-bit ASCII strings of hex digits
Instance Method Summary collapse
Methods inherited from Base
#compatible_types, #cql_aliases, #cql_name, #internal_name, #to_s
Instance Method Details
#cast(value) ⇒ Object
226 227 228 229 |
# File 'lib/cequel/type.rb', line 226 def cast(value) value = value.to_s(16) if value.is_a?(Integer) super end |
#internal_names ⇒ Object
222 223 224 |
# File 'lib/cequel/type.rb', line 222 def internal_names ['org.apache.cassandra.db.marshal.BytesType'] end |