use the lockmode='update' on a query object. row_obj = query_obj.select(where, lockmode='update').execute()
Basil Shubin wrote: > Hi friends! > > I have use SQLAlchemy 0.3 with MySQLdb 1.2.1 How I can lock row in > database table when I select it? So nobody can access it in same time. > BTW I use tables with InnoDB engine. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---