[Twisted-Python] How to correctly run Sqlite with Twisted?

Jean-Paul Calderone exarkun at twistedmatrix.com
Tue Sep 19 16:19:41 MDT 2017


On Tue, Sep 19, 2017 at 4:59 PM, Goffi <goffi at goffi.org> wrote:

> Hello,
>
> I'm using Sqlite3 module through Twisted's enterpirse.adbapi, I create the
> ConnectionPool instance like this:
>
>    self.dbpool = ConnectionPool("sqlite3", db_filename,
> check_same_thread=False)
>
> You can see the code at https://repos.goffi.org/sat/
> file/tip/src/memory/sqlite.py
>
> Sometime, the writing is failing with following exception:
>
>   Failure instance: Traceback: <class 'sqlite3.OperationalError'>:
> database is
> locked
>
> So I wonder if the database is correctly used, did anybody experienced
> something similar with Twisted and Sqlite ?
>
>
"Correctly" has so many shades.  Here's another possible direction for
exploration:

    https://github.com/twisted/axiom

Jean-Paul
http://as.ynchrono.us/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170919/17e769b4/attachment-0002.html>


More information about the Twisted-Python mailing list