Does db.session.commit() terminate a SQLAlchemy session?
I suspect the answer is no, and that I have to additionally call db.session.close(), but wanted to confirm.
No, it doesn't. It commits the current transaction. You can still issue additional queries after you commit. A transaction will be started automatically if you do. The relevant documentation is here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With