Hi Michael, thanks for your help. Since some of my engines are not bound to mappers I've tried the approach suggested in your previous post to subclass Session so that 'get_bind' would accept an additional 'engine' argument. This works fine with Session.execute() which passes **kw down to the 'get_bind' method, but unfortunately Session.connection() doesn't. Is this omitted intentionally, or could it be added?
Thanks a lot, Ralph > Here you'd use Session.execute() and Session.connection() to get at the > Connection you'd normally get from engine.contextual_connect() > (http://www.sqlalchemy.org/docs/orm/session.html#using-sql-expressions...) . > execute() and connection() accept a "mapper" argument for the case where > individual engines are associated with individual mappers, and both > ultimately call get_bind() which you can override via subclass if desired to > accept other kinds of arguments. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en.
