Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-93925: Improve doc clarity of sqlite3 commit/rollback, and close#93926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -423,21 +423,20 @@ Connection Objects | ||
| .. method:: commit() | ||
| This method commits the current transaction. If you don't call this method, | ||
| anything you did since the last call to ``commit()`` is not visible from | ||
| other database connections. If you wonder why you don't see the data you've | ||
| written to the database, please check you didn't forget to call this method. | ||
| Commit any pending transaction to the database. | ||
| If there is no open transaction, this method is a no-op. | ||
| .. method:: rollback() | ||
| This method rolls back any changes to the database since the last call to | ||
| :meth:`commit`. | ||
| Roll back to the start of any pending transaction. | ||
erlend-aasland marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| If there is no open transaction, this method is a no-op. | ||
| .. method:: close() | ||
| This closes the database connection. Note that this does not automatically | ||
| call :meth:`commit`. If you just close your database connection without | ||
| calling :meth:`commit` first, your changes will be lost! | ||
| Close the database connection. | ||
| Any pending transaction is not committed implicitly; | ||
| make sure to :meth:`commit` before closing | ||
| to avoid losing pending changes. | ||
| .. method:: execute(sql[, parameters]) | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.