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

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

php - Passing multiple values in a url using checkbox -

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