PouchDB – Database Info You can get the basic information about the database using the method named info() Syntax Following is the syntax of using the info() method of PouchDB. This method accepts a callback function. db.info([callback]) Example Following is an example of retrieving database information using the info() method. Here, we are displaying the […]
Author Archives: user
PouchDB – Environment This chapter explains how to download and install PouchDB in your system. Installing PouchDB In order to work with PouchDB, you need to download the file .js file and include it in your script. Following are the steps to install PouchDB. Step 1 Visit the homepage of PouchDB website, by clicking the […]
PouchDB – Delete Database You can delete a database in PouchDB using the db.destroy() method. Syntax Following is the syntax of using the db.destroy() method. This method accepts a callback function as a parameter. db.destroy() Example Following is an example of deleting a database in PouchDB using the destroy() method. Here, we are deleting the […]