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. In PostgreSQL, the blob type is called bytea. Sequel represents binary data as a Blob object because certain database engines, such as PostgreSQL, require binary data to be escaped.
Instance Method Summary collapse
-
#to_blob ⇒ Object
return self.
Methods inherited from String
#blank?, #lit, #split_sql, #to_date, #to_datetime, #to_sequel_time, #to_sql, #to_time
Methods included from CastMethods
#cast, #cast_numeric, #cast_string
Methods included from AliasMethods
Instance Method Details
#to_blob ⇒ Object
return self.
415 416 417 |
# File 'lib/sequel_core/sql.rb', line 415 def to_blob self end |