python - use sqlalchemy entity isolately -
i want use entity modify show something,but don't want change db, after use ,and in other place session.commit()
it add entity db,i don't want happen, 1 me?
you can expunge session before modifying object, changes won't accounted on next commits unless add object session. call session.expunge(obj)
.
Comments
Post a Comment