coleifer / peewee

a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb
http://docs.peewee-orm.com/
MIT License
11.06k stars 1.37k forks source link

Transaction feature for SqliteQueueDatabase #2878

Closed travnick closed 4 months ago

travnick commented 4 months ago

As the example shows, current SqliteQueueDatabase implementation does not implement transactions.

While doing a review it looks like it may be achieved by Thread-Local storage - so for each transaction, a local queue is created, and at the end it's flushed to the writer as a whole.

coleifer commented 4 months ago

No plans on implementing this, thanks though.