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

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

c# - NullReferenceException in MySqlClient.NativeDriver -