On Tuesday, April 24, 2018 at 7:21:26 AM UTC-7, Phil Stewart wrote: > > I've been trying to work out what the best way is to use table valued > functions in Sequel - can anyone help? I can do something like this, which > allows basic querying: > > @tvf_dataset = DB["SELECT * FROM someTableValueFunction(?, ?)", arg1_value > , arg2_value] > > This works if I just want the whole dataset, but I can't then build up a > where clause on top of it e.g. > > @tvf_dataset.where(:some_column => some_value) > > Is there a better way of interacting with table valued functions? >
DB.from{someTableValueFunction(arg1_value, arg2_value)}.where(:some_column=>some_value) Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To post to this group, send email to sequel-talk@googlegroups.com. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.