Method: Sequel::SQL::Builders#trim

Defined in:
lib/sequel/sql.rb

#trim(arg) ⇒ Object

Return an emulated function call for trimming a string of spaces from both sides (similar to ruby’s String#strip).

Sequel.trim(:a) # trim(a) -- Most databases
Sequel.trim(:a) # ltrim(rtrim(a)) -- Microsoft SQL Server


639
640
641
# File 'lib/sequel/sql.rb', line 639

def trim(arg)
  SQL::EmulatedFunction.new(:trim, arg)
end