Method: Symbol#sql_function
- Defined in:
- lib/sequel/extensions/core_extensions.rb
#sql_function(*args) ⇒ Object
Returns a Sequel::SQL::Function with this as the function name, and the given arguments.
:now.sql_function # SQL: now()
:sum.sql_function(:a) # SQL: sum(a)
:concat.sql_function(:a, :b) # SQL: concat(a, b)
219 220 221 |
# File 'lib/sequel/extensions/core_extensions.rb', line 219 def sql_function(*args) Sequel::SQL::Function.new(self, *args) end |