Module: Sequel::SQL::StringConcatenationMethods

Included in:
StringExpression
Defined in:
lib/sequel/lib/sequel/sql.rb

Overview

This module is included in StringExpression and can be included elsewhere to allow the use of the + operator to represent concatenation of SQL Strings:

:x.sql_string + :y => # SQL: x || y

Instance Method Summary collapse

Instance Method Details

#+(ce) ⇒ Object


356
357
358
# File 'lib/sequel/lib/sequel/sql.rb', line 356

def +(ce)
  StringExpression.new(:'||', self, ce)
end