class Sequel::SQL::Blob

  1. lib/sequel/sql.rb
Parent: SQL

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.

Methods

Public Instance

  1. lit
  2. to_sequel_blob

Public Instance methods

lit (*args)

Return a LiteralString with the same content if no args are given, otherwise return a SQL::PlaceholderLiteralString with the current string and the given args.

[show source]
# File lib/sequel/sql.rb, line 945
def lit(*args)
  args.empty? ? LiteralString.new(self) : SQL::PlaceholderLiteralString.new(self, args)
end
to_sequel_blob ()

Returns self, since it is already a blob.

[show source]
# File lib/sequel/sql.rb, line 950
def to_sequel_blob
  self
end