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 – Storage Types TinyDB has two types of storage: JSON and in-memory. TinyDB, by default, stores the data in JSON files. While creating a database, you need to specify the path where to store the JSON file on your computer. Storing Data in a JSON File First, let”s see how we can use a […]
TinyDB – Tables In TinyDB, we can work with multiple tables. These tables have the same properties as the TinyDB class. Let”s see how we can create tables in TinyDB and apply various operations on them − Creating Tables It’s very easy to create a table in TinyDB. Here”s its syntax − table_object = db.table(”table […]