@@ -351,12 +351,14 @@ pysqlite_connection_cursor_impl(pysqlite_Connection *self, PyObject *factory)
351351/*[clinic input]
352352_sqlite3.Connection.close as pysqlite_connection_close
353353
354- Closes the connection.
354+ Close the database connection.
355+
356+ Any pending transaction is not committed implicitly.
355357[clinic start generated code]*/
356358
357359static PyObject *
358360pysqlite_connection_close_impl (pysqlite_Connection * self )
359- /*[clinic end generated code: output=a546a0da212c9b97 input=3d58064bbffaa3d3 ]*/
361+ /*[clinic end generated code: output=a546a0da212c9b97 input=b3ed5b74f6fefc06 ]*/
360362{
361363 int rc ;
362364
@@ -445,12 +447,14 @@ PyObject* _pysqlite_connection_begin(pysqlite_Connection* self)
445447/*[clinic input]
446448_sqlite3.Connection.commit as pysqlite_connection_commit
447449
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.
449453[clinic start generated code]*/
450454
451455static PyObject *
452456pysqlite_connection_commit_impl (pysqlite_Connection * self )
453- /*[clinic end generated code: output=3da45579e89407f2 input=39c12c04dda276a8 ]*/
457+ /*[clinic end generated code: output=3da45579e89407f2 input=c8793c97c3446065 ]*/
454458{
455459 int rc ;
456460 sqlite3_stmt * statement ;
@@ -494,12 +498,14 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
494498/*[clinic input]
495499_sqlite3.Connection.rollback as pysqlite_connection_rollback
496500
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.
498504[clinic start generated code]*/
499505
500506static PyObject *
501507pysqlite_connection_rollback_impl (pysqlite_Connection * self )
502- /*[clinic end generated code: output=b66fa0d43e7ef305 input=12d4e8d068942830 ]*/
508+ /*[clinic end generated code: output=b66fa0d43e7ef305 input=7f60a2f1076f16b3 ]*/
503509{
504510 int rc ;
505511 sqlite3_stmt * statement ;
0 commit comments