Parent

Class/Module Index [+]

Quicksearch

Sequel::LiteralString

LiteralString is used to represent literal SQL expressions. A LiteralString is copied verbatim into an SQL statement. Instances of LiteralString can be created by calling String#lit.

Public Instance Methods

lit(*args) click to toggle source

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

# File lib/sequel/sql.rb, line 1710
def lit(*args)
  args.empty? ? self : SQL::PlaceholderLiteralString.new(self, args)
end
to_sequel_blob() click to toggle source

Convert a literal string to a SQL::Blob.

# File lib/sequel/sql.rb, line 1715
def to_sequel_blob
  SQL::Blob.new(self)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.