@@ -470,12 +470,14 @@ blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
470
470
/*[clinic input]
471
471
_sqlite3.Connection.close as pysqlite_connection_close
472
472
473
- Closes the connection.
473
+ Close the database connection.
474
+
475
+ Any pending transaction is not committed implicitly.
474
476
[clinic start generated code]*/
475
477
476
478
static PyObject *
477
479
pysqlite_connection_close_impl (pysqlite_Connection * self )
478
- /*[clinic end generated code: output=a546a0da212c9b97 input=3d58064bbffaa3d3 ]*/
480
+ /*[clinic end generated code: output=a546a0da212c9b97 input=b3ed5b74f6fefc06 ]*/
479
481
{
480
482
if (!pysqlite_check_thread (self )) {
481
483
return NULL ;
@@ -522,12 +524,14 @@ int pysqlite_check_connection(pysqlite_Connection* con)
522
524
/*[clinic input]
523
525
_sqlite3.Connection.commit as pysqlite_connection_commit
524
526
525
- Commit the current transaction.
527
+ Commit any pending transaction to the database.
528
+
529
+ If there is no open transaction, this method is a no-op.
526
530
[clinic start generated code]*/
527
531
528
532
static PyObject *
529
533
pysqlite_connection_commit_impl (pysqlite_Connection * self )
530
- /*[clinic end generated code: output=3da45579e89407f2 input=39c12c04dda276a8 ]*/
534
+ /*[clinic end generated code: output=3da45579e89407f2 input=c8793c97c3446065 ]*/
531
535
{
532
536
if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
533
537
return NULL ;
@@ -557,12 +561,14 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
557
561
/*[clinic input]
558
562
_sqlite3.Connection.rollback as pysqlite_connection_rollback
559
563
560
- Roll back the current transaction.
564
+ Roll back to the start of any pending transaction.
565
+
566
+ If there is no open transaction, this method is a no-op.
561
567
[clinic start generated code]*/
562
568
563
569
static PyObject *
564
570
pysqlite_connection_rollback_impl (pysqlite_Connection * self )
565
- /*[clinic end generated code: output=b66fa0d43e7ef305 input=12d4e8d068942830 ]*/
571
+ /*[clinic end generated code: output=b66fa0d43e7ef305 input=7f60a2f1076f16b3 ]*/
566
572
{
567
573
if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
568
574
return NULL ;
0 commit comments