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
Post a Comment