On 08/17/2011 02:05 PM, Michael Bayer wrote: > On Aug 17, 2011, at 1:06 PM, Tim Black wrote: > But here is how the docs could be made more clear - simply state 1. > whether it is allowable to use bind and binds simultaneously on the > same object, and (if 2. is the case) 2. that the engine specified in > bind will be used for all classes, mappers, and tables except where > another engine is specified by binds. For brevity's sake, I note that > 1. is implicit in 2. > > well the docs so far are > in > http://www.sqlalchemy.org/docs/orm/session.html#sqlalchemy.orm.session.Session.get_bind > and basically it will try to return the most specific "bind" first. > ie.....I was about to start typing the order here. What's the use in > that, when I can type it into the docs instead, so click over there to > see the exact order of resolution. Aha...I had read that "order of resolution" section, but failed to remember it when I needed it. That section is sufficient to answer my concern above, and better than what I recommended!
Tim -- 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 sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.