I have a model called Test

class Test < Sequel::Model


 dataset_module do
   def a
     where{...}
   end


   def b
     where{...}
   end


   def c 
     where{...}
   end
 end
end

I want to create a fourth dataset combining a and b. Apparently
def c 
 (a & b) | c
end

in dataset_module returns a Sequel::SQL::BooleanExpression object.
I want to be able to retrieve combined scope records without having to 
rewrite the queries in each case.
Am I able to do something like this in Sequel ?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to