On Dec 23, 2009, at 10:11 PM, karikris...@gmail.com wrote: > I have this scenario. > > I have two libraries developed independently using SQLAlchemy. each > library has its own model, own session connection. Now I have > application using those two libraries. Application has its own models. > application is having its own session. > > Data stored into the same database (mysql). > > In my application, I want to do some query operation which requires > the library 1 models to be used as part of the application 1 session. > But Library 1 model already binded with library 1 session/meta. How > can I associate a model which connected to other session into > application session?
I'd probably make the two libraries use the same common session, that of the application. a "model" doesn't need to define its own session. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.