In sqlite python, one has to run commit()
to make sure a SQL statement is executed if auto-commit is not enabled. Auto-commit is enabled by doing something like this sqlite3.connect('sqlitedb.db', isolation_level=None)
Is it a good practice to enable auto-commit all the time? THis is to avoid bugs that can happen when one forgets to run commit()
.
What are some situations, if any, that auto-commit is better to be disabled?
I am using sqlite3 and python v3.6