Does db.session.commit() terminate a SQLAlchemy session? -


does db.session.commit() terminate sqlalchemy session?

i suspect answer no, , have additionally call db.session.close(), wanted confirm.

no, doesn't. commits current transaction. can still issue additional queries after commit. transaction started automatically if do. relevant documentation here.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -