Skip to content

Commit

Permalink
pythongh-96810: Clarify for which statements sqlite3 implicitly opens…
Browse files Browse the repository at this point in the history
… transactions (python#96832)
  • Loading branch information
erlend-aasland authored Sep 15, 2022
1 parent 303bd88 commit 16c33a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2274,7 +2274,8 @@ If the connection attribute :attr:`~Connection.isolation_level`
is not ``None``,
new transactions are implicitly opened before
:meth:`~Cursor.execute` and :meth:`~Cursor.executemany` executes
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements.
``INSERT``, ``UPDATE``, ``DELETE``, or ``REPLACE`` statements;
for other statements, no implicit transaction handling is performed.
Use the :meth:`~Connection.commit` and :meth:`~Connection.rollback` methods
to respectively commit and roll back pending transactions.
You can choose the underlying `SQLite transaction behaviour`_ —
Expand Down

0 comments on commit 16c33a9

Please sign in to comment.