[printed information]
after testing the ROLLBACK, execute
session configuration code uses the default: autoflush=True, autocommit=False, expire_on_commit=True
[Information queried by yourself]
1. When sqlalchemy performs the query operation, it will first execute flush () to submit the information to the database (but no commit)
2. Add self.db.commit () after the query and the ROLLBACK information will not be printed
No relevant explanation was found on the web page
so I would like to ask, during the query operation, there is no change in the data, what is the operating mechanism? Why the ROLLBACK information will appear, the query must also be commit ()?