bpo-27645: Supporting native backup facility of SQLite#377
Conversation
Suggested by Aviv Palivoda.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:
Thanks again to your contribution and we look forward to looking at it! |
Sorry, something went wrong.
|
@lelit, thanks for your PR! By analyzing the history of the files in this pull request, we identified @berkerpeksag, @zware, @gvanrossum, @avassalotti and @orsenthil to be potential reviewers. |
Sorry, something went wrong.
|
I configured my GitHub username on b.p.o. |
Sorry, something went wrong.
Suggested by Aviv Palivoda.
When sqlite3_backup_step() returns OK it means that it was able to do it's work but there are further pages to be copied: in such case it's better to immediately start the next iteration, without opening a window that allows other threads to go on and possibly locking the database. Suggested by Aviv Palivoda.
…llback Add new SQLITE_DONE integer constant to the module, that could be used by the callback to determine whether the backup is terminated.
This should address Aviv's concerns about how the sqlite3_backup_step() errors are handled.
|
Is there anything else I could/should do to see this accepted? |
Sorry, something went wrong.
|
FYI, I rebased these commits on top of current master: https://github.com/lelit/cpython/tree/sqlite-backup-api-v3 |
Sorry, something went wrong.
|
@Mariatta I'm confused by that "added |
Sorry, something went wrong.
|
@lelit We can only review PRs in CPython repo. Currently this PR has conflict. If the conflict is resolved in a different branch, maybe you can create the PR for the other branch? |
Sorry, something went wrong.
|
Does that mean you'd prefer me to rebase the branch I opened the PR with? |
Sorry, something went wrong.
|
@lelit There's a conflict because you edited Misc/NEWS and it will no longer merge cleanly as-is. See https://devguide.python.org/committing/?highlight=news.d#what-s-new-and-news-entries on how to fix this. |
Sorry, something went wrong.
|
@brettcannon, I rebased the branch into https://github.com/lelit/cpython/compare/sqlite-backup-api-v3 As said in this comment I'm sorry about the fuss, but it's not clear to me whether I should have closed this PR and reopened a new one on the v3 branch, or if instead I should have rewritten the same v2 branch. As always, I'm willing to do whatever is easier/more correct for you! |
Sorry, something went wrong.
|
@lelit I'm not sure what 'v2' and 'v3' are referring to (some personal branches in your fork you have?), but if you look at https://github.com/python/cpython/pull/377/files you will see that the branch your PR is based on has not been updated in regards to the NEWS file. If it's easier, you can just close this PR, open a new one if you have some other branch that's in better shape, and then refer to this old PR in the new PR's opening comment. |
Sorry, something went wrong.
|
Ok, doing that immediately. |
Sorry, something went wrong.
|
As suggested by Brett, I'm closing this PR, replaced by #4238. |
Sorry, something went wrong.
This is a set of patches (rebased on current master) that adds a new
backup()method onsqlite3.Connection.https://bugs.python.org/issue27645