Is that mean, having separate session per library and one application
session which combines both is not possible at this moment?

So keeping them at the application level may help me at this point of
time.

Thank you for suggestion.

Regards,

Krish

On Dec 27, 9:09 pm, Michael Bayer <mike...@zzzcomputing.com> wrote:
> 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.


Reply via email to