Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sqlalchemy lock row

YourModel.query.with_for_update().get(id)

#This locks the row until 
db.session.rollback()
#or
db.session.commit()
#is called
 
PREVIOUS NEXT
Tagged: #sqlalchemy #lock #row
ADD COMMENT
Topic
Name
6+1 =