@@ -470,12 +470,14 @@ blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
470470/*[clinic input]
471471_sqlite3.Connection.close as pysqlite_connection_close
472472
473- Closes the connection.
473+ Close the database connection.
474+
475+ Any pending transaction is not committed implicitly.
474476[clinic start generated code]*/
475477
476478static PyObject *
477479pysqlite_connection_close_impl (pysqlite_Connection * self )
478- /*[clinic end generated code: output=a546a0da212c9b97 input=3d58064bbffaa3d3 ]*/
480+ /*[clinic end generated code: output=a546a0da212c9b97 input=b3ed5b74f6fefc06 ]*/
479481{
480482 if (!pysqlite_check_thread (self )) {
481483 return NULL ;
@@ -522,12 +524,14 @@ int pysqlite_check_connection(pysqlite_Connection* con)
522524/*[clinic input]
523525_sqlite3.Connection.commit as pysqlite_connection_commit
524526
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.
526530[clinic start generated code]*/
527531
528532static PyObject *
529533pysqlite_connection_commit_impl (pysqlite_Connection * self )
530- /*[clinic end generated code: output=3da45579e89407f2 input=39c12c04dda276a8 ]*/
534+ /*[clinic end generated code: output=3da45579e89407f2 input=c8793c97c3446065 ]*/
531535{
532536 if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
533537 return NULL ;
@@ -557,12 +561,14 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
557561/*[clinic input]
558562_sqlite3.Connection.rollback as pysqlite_connection_rollback
559563
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.
561567[clinic start generated code]*/
562568
563569static PyObject *
564570pysqlite_connection_rollback_impl (pysqlite_Connection * self )
565- /*[clinic end generated code: output=b66fa0d43e7ef305 input=12d4e8d068942830 ]*/
571+ /*[clinic end generated code: output=b66fa0d43e7ef305 input=7f60a2f1076f16b3 ]*/
566572{
567573 if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
568574 return NULL ;
0 commit comments