On Sun, 2010-05-23 at 11:00 -0700, hal_robertson wrote: > Hi there > > I am just getting my feet wet with Elixir > > I have a legacy app built with SqlAlchemy, and I'd like to add a few > new classes and database tables using Elixir > > I do not want to rewrite the whole app to use Elixir right now. > > In the meantime, I need to relate the new classes/tables created with > Elixir with the legacy classes/tables created with SqlAlchemy > > How do I define the relationships in the Elixir classes so they will > recognize and play nicely with the SqlAlchemy mapped classes?
The short answer is that currently you can't do that in all cases. It's on my TODO list, but given my current pace of development on Elixir (really, really slow), you shouldn't hope for it anytime soon. See what works and what doesn't in: http://elixir.ematia.de/trac/browser/elixir/tags/0.7.1/tests/test_sa_integration.py For a project like that I suggest you use SQLAlchemy's declarative extension instead. Hope it helps, Gaëtan. -- 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.
