Method: Zena::Use::QueryNode::Compiler#process_function

Defined in:
lib/zena/use/query_node.rb

#process_function(arg, method, *args) ⇒ Object



411
412
413
414
415
416
417
418
419
420
421
# File 'lib/zena/use/query_node.rb', line 411

def process_function(arg, method, *args)
  # Resolve scope index fields
  arg, method = resolve_scope_idx_fields(arg, method)
  if method
    arg, method = process(arg), process(method)
    args = [arg] + args.map{|a| process(a)}
    Zena::Db.sql_function(method, *args)
  else
    process(arg)
  end
end