Em Sábado 10 Junho 2006 03:21, nEO (a.k.a. gentoo.cn) escreveu: > > I need 3 different database connection in my application. > Should I use 3 model files?
That depends on your design of the application. If you know you can't use FKs from one table to another in a different database, you can't inherit from tables on different databases, etc. then you can use the same model. You'll have to have three different connection pools and you'll need to say to which database the mapped class belongs to. In SQL Object you'd use the connection attribute inside the sqlmeta metaclass... I don't know how you'd do that with SQL Alchemy. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears -~----------~----~----~----~------~----~------~--~---

