[issue27645] Supporting native backup facility of SQLite

Serhiy Storchaka report at bugs.python.org
Fri Dec 8 04:03:44 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It seems to me that the code could be much simpler (and more bugfree) if support only a Connection instance as a target. It is easy to create a Connection instance in Python:

    with sqlite3.connect(filename) as dest:
        source.backup(dest)

But this would save around 50 lines of complex C code. And I'm not sure this code is correct.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27645>
_______________________________________


More information about the Python-bugs-list mailing list