TinyDB – The where Clause TinyDB provides the “where” clause that you can use while searching for a particular data. The “where” clause helps by filtering the unwanted data out. With the help of the “where” clause, you can access specific data quickly. Before using the ”where” clause, we need to first import it. The […]
Category Archives: tinydb
TinyDB – Middleware TinyDB middleware helps us to customize database storage behavior by wrapping around the existing storage. This middleware improves the performance of the database. Caching Middleware This middleware, as its name implies, improves the speed of a database by reducing the disk I/O. The working of CachingMiddleware is as follows − First, it […]
TinyDB – Extend TinyDB It is possible to extend TinyDB and modify its behaviour. There are four ways to do so − Custom middleware Custom storages Hooks and overrides Subclassing TinyDB and table In this chapter, let”s understand each of these methods in detail. Custom Middleware Sometimes the user does not want to write a […]



