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 Sequel.lit.
Public Instance methods
inspect()
Show that the current string is a literal string in addition to the output.
[show source]
# File lib/sequel/sql.rb 2046 def inspect 2047 "#<#{self.class} #{super}>" 2048 end
lit(*args)
Return self 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 2052 def lit(*args) 2053 args.empty? ? self : SQL::PlaceholderLiteralString.new(self, args) 2054 end
to_sequel_blob()
Convert a literal string to a SQL::Blob.
[show source]
# File lib/sequel/sql.rb 2057 def to_sequel_blob 2058 SQL::Blob.new(self) 2059 end