On Sat, Jun 7, 2008 at 2:50 PM, Tomer <[EMAIL PROTECTED]> wrote: > > Thanks. What would happen if I didn't do anything (I've seen lots of > examples online that will just issue a query like > Session.query(User).all() and that's all). Will that query start a > transaction if it's a transactional session? >
Currently that is what I use to do to get readonly. Since I am the one that manages sa code as long as I don't say, User.somefiled= 123, I should have no worries about any changes being made. User.query.filter.....is just a select statement. Unless proven/shown otherwise. Lucas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---