TinyDB – Introduction What is TinyDB? TinyDB, written in pure Python programming language, is a small and lightweight document-orineted database with no external dependencies. It provides simple APIs that makes it easy to use. We can use TinyDB database for small project applications without any configuration. TinyDB module, available as a third-party module for Python […]
Author Archives: user
TinyDB – Insert Data We have created the instance of the TinyDB and passed a JSON file to it where our data will be stored. It is now time to insert the items in our database. The data should be in the form of a Python dictionary. Syntax To insert an item, you can use […]
TinyDB – Delete Data In case you need to delete a particular set of data permanently from a TinyDB database, you can do so by using the remove() method. Like for reteriving and updating the data, you first need to create an instance of the Query class for deleting the data. You can use the […]