Method: Sequel::SQL::Builders#function

Defined in:
lib/sequel/sql.rb

#function(name, *args) ⇒ Object

Returns a Sequel::SQL::Function with the function name and the given arguments.

Sequel.function(:now) # SQL: now()
Sequel.function(:substr, :a, 1) # SQL: substr(a, 1)

534
535
536
# File 'lib/sequel/sql.rb', line 534

def function(name, *args)
  SQL::Function.new(name, *args)
end