module Sequel::SQL::StringConcatenationMethods

  1. lib/sequel/sql.rb
Parent: SQL

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:

Methods

Public Instance

  1. +

Public Instance methods

+ (ce)

Return a StringExpression representing the concatenation of the receiver with the given argument.

:x.sql_string + :y => # "x" || "y"
[show source]
# File lib/sequel/sql.rb, line 897
def +(ce)
  StringExpression.new(:'||', self, ce)
end