Module: Sequel::SQL::StringConcatenationMethods
- Included in:
- StringAgg, StringExpression
- Defined in:
- lib/sequel/sql.rb
Overview
This module includes the + method.  It is included in StringExpression and can be included elsewhere to allow the use of the + operator to represent concatenation of SQL Strings:
Instance Method Summary collapse
- 
  
    
      #+(ce)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Return a StringExpressionrepresenting the concatenation of the receiver with the given argument.
Instance Method Details
#+(ce) ⇒ Object
Return a StringExpression representing the concatenation of the receiver with the given argument.
Sequel[:x].sql_string + :y # => "x" || "y"
| 978 979 980 | # File 'lib/sequel/sql.rb', line 978 def +(ce) StringExpression.new(:'||', self, ce) end |