This would be nice for use with junction tables.  If I have tables a and b, 
and junction table a_to_b, In SQL I can do:

a_to_b JOIN (a, b) ON (id_a = a.id AND id_b = b.id)

Right now the only way I know to achieve the same effect in Sequel is by 
chaining two joins:

db[:a].join(db[:a_to_b], :id_a=>:id).join(db[:b] :id=>:id_b)

Is it possible to supply two arguments to a join in Sequel?

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/_CJkxGNLgqIJ.
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