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



241
242
243
# File 'lib/sequel_core/sql.rb', line 241

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