TinyDB – Searching TinyDB provides the search() method to help you search any data from a document. Along with the query() object, the search() method can be used to find the data in a JSON file. We have various ways in which we can use the search() method on a TinyDB database. Method 1: TinyDB […]
Author Archives: user
TinyDB – Environmental Setup Prerequisite for TinyDB setup To install TinyDB, you must have Python 3.6 or newer installed in your system. You can go to the link and select the latest version for your OS, i.e., Windows and Linux/Unix. We have a comprehensive tutorial on Python, which you can refer at Installing TinyDB You […]
TinyDB – Retrieve Data There are numerous ways with the help of which you can retrieve data from a TinyDB database. But to use those ways, you first need to create an instance of the Query class as follows − from tinydb import Query Student = Query() Here, Student is the name of the database. […]