Class Sequel::SQL::LiteralString
In: lib/sequel/sql.rb
Parent: Object

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.

Methods

Included Modules

SQL::OrderMethods SQL::ComplexExpressionMethods SQL::BooleanMethods SQL::NumericMethods SQL::StringMethods SQL::InequalityMethods SQL::AliasMethods SQL::CastMethods

Public Instance methods

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, line 1935
1935:     def lit(*args)
1936:       args.empty? ? self : SQL::PlaceholderLiteralString.new(self, args)
1937:     end

Convert a literal string to a SQL::Blob.

[Source]

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

[Validate]