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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -