@@ -634,25 +634,25 @@ Connection objects
634
634
635
635
.. method :: commit()
636
636
637
- Commit any pending transaction to the database.
637
+ Commit any open transaction to the database.
638
638
If :attr: `autocommit ` is ``True ``, or there is no open transaction,
639
639
this method does nothing.
640
640
If :attr: `!autocommit ` is ``False ``, a new transaction is implicitly
641
- opened if a pending transaction was committed by this method.
641
+ opened if an open transaction was committed by this method.
642
642
643
643
.. method :: rollback()
644
644
645
- Roll back to the start of any pending transaction.
645
+ Roll back to the start of any open transaction.
646
646
If :attr: `autocommit ` is ``True ``, or there is no open transaction,
647
647
this method does nothing.
648
648
If :attr: `!autocommit ` is ``False ``, a new transaction is implicitly
649
- opened if a pending transaction was rolled back by this method.
649
+ opened if an open transaction was rolled back by this method.
650
650
651
651
.. method :: close()
652
652
653
653
Close the database connection.
654
654
If :attr: `autocommit ` is ``False ``,
655
- any pending transaction is implicitly rolled back.
655
+ any open transaction is implicitly rolled back.
656
656
If :attr: `!autocommit ` is ``True `` or :data: `LEGACY_TRANSACTION_CONTROL `,
657
657
no implicit transaction control is executed.
658
658
Make sure to :meth: `commit ` before closing
@@ -1273,7 +1273,7 @@ Connection objects
1273
1273
This is currently the default value of :attr: `!autocommit `.
1274
1274
1275
1275
Changing :attr: `!autocommit ` to ``False `` will open a new transaction,
1276
- and changing it to ``True `` will commit any pending transaction.
1276
+ and changing it to ``True `` will commit any open transaction.
1277
1277
1278
1278
See :ref: `sqlite3-transaction-control-autocommit ` for more details.
1279
1279
@@ -1474,7 +1474,7 @@ Cursor objects
1474
1474
Execute the SQL statements in *sql_script *.
1475
1475
If the :attr: `~Connection.autocommit ` is
1476
1476
:data: `LEGACY_TRANSACTION_CONTROL `
1477
- and there is a pending transaction,
1477
+ and there is an open transaction,
1478
1478
an implicit ``COMMIT `` statement is executed first.
1479
1479
No other implicit transaction control is performed;
1480
1480
any transaction control must be added to *sql_script *.
@@ -2392,7 +2392,7 @@ This means:
2392
2392
* :mod: `!sqlite3 ` ensures that a transaction is always open,
2393
2393
so :meth: `Connection.commit ` and :meth: `Connection.rollback `
2394
2394
will implicitly open a new transaction immediately after closing
2395
- the pending one.
2395
+ the open one.
2396
2396
:mod: `!sqlite3 ` uses ``BEGIN DEFERRED `` statements when opening transactions.
2397
2397
* Transactions should be committed explicitly using :meth: `!commit `.
2398
2398
* Transactions should be rolled back explicitly using :meth: `!rollback `.
@@ -2437,7 +2437,7 @@ new transactions are implicitly opened before
2437
2437
``INSERT ``, ``UPDATE ``, ``DELETE ``, or ``REPLACE `` statements;
2438
2438
for other statements, no implicit transaction handling is performed.
2439
2439
Use the :meth: `~Connection.commit ` and :meth: `~Connection.rollback ` methods
2440
- to respectively commit and roll back pending transactions.
2440
+ to respectively commit and roll back open transactions.
2441
2441
You can choose the underlying `SQLite transaction behaviour `_ —
2442
2442
that is, whether and what type of ``BEGIN `` statements :mod: `!sqlite3 `
2443
2443
implicitly executes –
@@ -2452,7 +2452,7 @@ The underlying SQLite library autocommit mode can be queried using the
2452
2452
:attr: `~Connection.in_transaction ` attribute.
2453
2453
2454
2454
The :meth: `~Cursor.executescript ` method implicitly commits
2455
- any pending transaction before execution of the given SQL script,
2455
+ any open transaction before execution of the given SQL script,
2456
2456
regardless of the value of :attr: `~Connection.isolation_level `.
2457
2457
2458
2458
.. versionchanged :: 3.6
0 commit comments