The TinyDB forum has found a new home at GitHub discussions. The content here remains as a read-only archive.
Is is possible to explicitly call the flush() method of the Caching Middleware?
Hey RomanGamer ,
that's a good point. Right now I think it's only possible using the instance variable db._storage, so
Maybe there should be a better way to do this, like having a storage property on every TinyDB instance. I've opened a GitHub issue for this, so I don't forget it: https://github.com/msiemens/tinydb/issues/258
RomanGamer With version 3.13.0 released today you can access the storage object using db.storage: