You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
When creating a DB backup, if the DB is in use while copying the file(s), it is possible to compromise the accuracy of the copied database because the original backup can be modified while the file is still being copied.
Describe the solution you'd like
It is required to create an special implementation for DB. Each database will need it's own implementation but Feature Request is specific for SQLite.
Additional context
This can be done with the SQLite3 Python library with the following block code:
import sqlite3
def progress(status, remaining, total):
print(f'Copied {total-remaining} of {total} pages...')
con = sqlite3.connect('existing_db.db')
bck = sqlite3.connect('backup.db')
with bck:
con.backup(bck, pages=1, progress=progress)
bck.close()
con.close()
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When creating a DB backup, if the DB is in use while copying the file(s), it is possible to compromise the accuracy of the copied database because the original backup can be modified while the file is still being copied.
Describe the solution you'd like
It is required to create an special implementation for DB. Each database will need it's own implementation but Feature Request is specific for SQLite.
Additional context
This can be done with the SQLite3 Python library with the following block code:
The text was updated successfully, but these errors were encountered: