Hi,
I am using Elixir 0.5.2 with SQLAlchemy 0.4.6. I think using Elixir on
top of SA is a really valuable tools and make coding more compact. Its
great!

I am looking at the "Working with Multiple Databases" page on the
Goodies section of project website and found the suggested method to
achieve what the title says.

I just wanted to know why wouldn't the following work or what the
shortcoming of the following method:

(I am looking at Multiple files (module) subsection of the webpage)

1) Have a.py as suggested. In addition, have a method called
initialise(), which contains a_metadata.bind = a_engine;
a_session.bind = a_engine

2) Have b.py as suggested with one minor change; b_metadata =
metadata. Have a method called initialise() similar to the one in 1).

3) Now before using either Entity A or B, call initialise() in a.py or
b.py respectively.

Thanks a lot

ducky



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to