Class | Sequel::LiteralString |
In: |
lib/sequel/extensions/pg_row_ops.rb
lib/sequel/extensions/pg_range_ops.rb lib/sequel/extensions/pg_array_ops.rb lib/sequel/extensions/pg_hstore_ops.rb 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 String#lit.
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 1604 1604: def lit(*args) 1605: args.empty? ? self : SQL::PlaceholderLiteralString.new(self, args) 1606: end