Jason Porath wrote: > I don't know how to join a table (in this case, "files") twice > in sqlAlchemy/Elixir. I don't have any leeway in changing the > structure of the data recording, unfortunately.
This is most definitely possible, both using `Table` objects directly, and through the ORM. You can find some great detail on this in the SQLAlchemy documentation here: http://www.sqlalchemy.org/docs/04/documentation.html#sql_joins http://www.sqlalchemy.org/docs/04/documentation.html#advdatamapping_relation_selfreferential_query The trick to self-referential joins is that you may need to alias the table. If you need to access a table object directly in elixir, you'll find it attached to your entity as the `.table` attribute. I hope this helps. -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
