Mike Conley wrote:
>
> Question:
> Can I express the join to table Rvalue in terms of the relation attributes
> defined on the classes instead of needing a SQL construct that essentially
> is restating the foreign key relationships? The documentation for
> query.join() has some examples using relation attributes, but I can't
> figure
> out the syntax when 2 foreign keys are present.
>
> http://www.sqlalchemy.org/docs/05/reference/orm/query.html?highlight=#sqlalchemy.orm.query.Query.join
>

the syntax is the same regardless of how many foreign keys are present. 
whatever the primaryjoin condition of the relation() is, is what will be
expressed.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to