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 -

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

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