Module: Sequel::SQL::StringConcatenationMethods

Included in:
StringExpression
Defined in:
lib/sequel_core/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



304
305
306
# File 'lib/sequel_core/sql.rb', line 304

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