Hello, I need to access two databases from my app. I'm trying to use scoped_session helper:
SessionA = scoped_session(sessionmaker(autoflush=True, transactional=False)) SessionB = scoped_session(sessionmaker(autoflush=True, transactional=False)) ... mapper(SessionA.mapper, ClassFromA ...) mapper(SessionB.mapper, ClassFromB ...) But when I try to query against SessionA it looks for a table_a in database B. How do I separate two sessions properly? -- Max http://maxischenko.in.ua // http://www.linkedin.com/in/maksim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---