@@ -351,12 +351,14 @@ pysqlite_connection_cursor_impl(pysqlite_Connection *self, PyObject *factory)
351
351
/*[clinic input]
352
352
_sqlite3.Connection.close as pysqlite_connection_close
353
353
354
- Closes the connection.
354
+ Close the database connection.
355
+
356
+ Any pending transaction is not committed implicitly.
355
357
[clinic start generated code]*/
356
358
357
359
static PyObject *
358
360
pysqlite_connection_close_impl (pysqlite_Connection * self )
359
- /*[clinic end generated code: output=a546a0da212c9b97 input=3d58064bbffaa3d3 ]*/
361
+ /*[clinic end generated code: output=a546a0da212c9b97 input=b3ed5b74f6fefc06 ]*/
360
362
{
361
363
int rc ;
362
364
@@ -445,12 +447,14 @@ PyObject* _pysqlite_connection_begin(pysqlite_Connection* self)
445
447
/*[clinic input]
446
448
_sqlite3.Connection.commit as pysqlite_connection_commit
447
449
448
- Commit the current transaction.
450
+ Commit any pending transaction to the database.
451
+
452
+ If there is no open transaction, this method is a no-op.
449
453
[clinic start generated code]*/
450
454
451
455
static PyObject *
452
456
pysqlite_connection_commit_impl (pysqlite_Connection * self )
453
- /*[clinic end generated code: output=3da45579e89407f2 input=39c12c04dda276a8 ]*/
457
+ /*[clinic end generated code: output=3da45579e89407f2 input=c8793c97c3446065 ]*/
454
458
{
455
459
int rc ;
456
460
sqlite3_stmt * statement ;
@@ -494,12 +498,14 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
494
498
/*[clinic input]
495
499
_sqlite3.Connection.rollback as pysqlite_connection_rollback
496
500
497
- Roll back the current transaction.
501
+ Roll back to the start of any pending transaction.
502
+
503
+ If there is no open transaction, this method is a no-op.
498
504
[clinic start generated code]*/
499
505
500
506
static PyObject *
501
507
pysqlite_connection_rollback_impl (pysqlite_Connection * self )
502
- /*[clinic end generated code: output=b66fa0d43e7ef305 input=12d4e8d068942830 ]*/
508
+ /*[clinic end generated code: output=b66fa0d43e7ef305 input=7f60a2f1076f16b3 ]*/
503
509
{
504
510
int rc ;
505
511
sqlite3_stmt * statement ;
0 commit comments