class 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 Sequel.lit
.
Public Instance Methods
Source
# File lib/sequel/sql.rb 2040 def inspect 2041 "#<#{self.class} #{super}>" 2042 end
Show that the current string is a literal string in addition to the output.
Source
# File lib/sequel/sql.rb 2046 def lit(*args) 2047 args.empty? ? self : SQL::PlaceholderLiteralString.new(self, args) 2048 end
Return self if no args are given, otherwise return a SQL::PlaceholderLiteralString
with the current string and the given args.
Source
# File lib/sequel/sql.rb 2051 def to_sequel_blob 2052 SQL::Blob.new(self) 2053 end
Convert a literal string to a SQL::Blob
.