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



314
315
316
# File 'lib/sequel_core/sql.rb', line 314

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