Class: Sequel::SQL::Blob
Overview
Blob
is used to represent binary data in the Ruby environment that is stored as a blob type in the database. Sequel represents binary data as a Blob object because most database engines require binary data to be escaped differently than regular strings.
Instance Method Summary collapse
-
#to_sequel_blob ⇒ Object
Returns
self
, used so that Blobs don’t get wrapped in multiple levels.
Methods inherited from String
#blank?, #camelize, #classify, #constantize, #dasherize, #demodulize, #foreign_key, #humanize, inflections, #lit, #pluralize, #singularize, #sql_expr, #tableize, #titleize, #to_date, #to_datetime, #to_sequel_time, #to_time, #underscore
Methods included from CastMethods
#cast, #cast_numeric, #cast_string
Methods included from AliasMethods
Instance Method Details
#to_sequel_blob ⇒ Object
Returns self
, used so that Blobs don’t get wrapped in multiple levels.
534 535 536 |
# File 'lib/sequel/sql.rb', line 534 def to_sequel_blob self end |