class Sequel::LiteralString

  1. lib/sequel/sql.rb
Superclass: String

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

  1. inspect
  2. lit
  3. to_sequel_blob

Public Instance methods


Show that the current string is a literal string in addition to the output.

[show source]
     # File lib/sequel/sql.rb
2030 def inspect
2031   "#<#{self.class} #{super}>"
2032 end

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
2036 def lit(*args)
2037   args.empty? ? self :, args)
2038 end

Convert a literal string to a SQL::Blob.

[show source]
     # File lib/sequel/sql.rb
2041 def to_sequel_blob
2043 end