I have a postgresql function that takes a couple arguments and returns
a table.

How can I query this function with postgresql without having to use
raw sql? (i.e. I'd want to put a limit on the rows returned)

This is what I'm doing now, and it's obviously terrible.

    query = "select * from
search_active_line_items('#{search_term}'::text, ……..)"
    if limit
      query << " limit #{ limit }"
    end
    DB[query]

Thanks,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to