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

php - Passing multiple values in a url using checkbox -

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 -