PouchDB is a CouchDB - inspired open-source database designed to run well in the browser. PouchDB helps web developers to make new applications that work online as well as offline. It enables applications to purchase the data online while offline and coordinate it with CouchDB and fully compatible servers once the application returns online.
Below are few major features of Pouchdb
Q1. Explain what is PouchDB?
Q2. In which language PouchDB was written?
Q3. Enlist the browsers supported by PouchDB?
The browsers that are supported by PouchDB are as follows:
Q4. List few advantages of using PouchDB?
Some of the advantages of using PouchDB are given below:
Q5. How to create a database in PouchDB?
To create a database, you need to simply call the new PouchDB and give it a name. For example var db = new PouchDB('students');
Q6. What is the use of Replication in PouchDB?
Replication is used to make a copy of a database in PouchDB. In PouchDB any PouchDB object can replicate to any other PouchDB object. You can replicate a PouchDB instance stored locally. Syntax- PouchDB.replicate(source, target, [options])
Q7. How can we get database information in PouchDB?
You can check your PouchDB database with the help of indeed a skip_setup option available. As stated in the documentation, by default, PouchDB will check if the database exists and try to create it and if it does not exist yet, you can set this option to true to skip this setup.
Q8. What is the use of db.put() method in PouchDB?
In PouchDB, the db.put() method is used to create a document in the PouchDB database. The document that is created in the PouchDB database is stored in a variable and pass as a parameter to this method.
Q9. What is Batch? How to create a batch in PouchDB?
In PouchDb, a Batch is basically an Array of bulk documents. You can create a batch of documents in PouchDB using the db.bulkDocs() method. Syntax - db.bulkDocs(docs, [options], [callback])
Q10. What is an attachment in PouchDB?
In PouchDB, Attachments are where PouchDB can get really fun which means PouchDB attachments allow you to use that to full advantage to store images, MP3s, zip files, or whatever you want.
Q11. Enlist few PouchDB document methods?
Some of the PouchDB document methods are get() method, read method(), etc.
Q12. What is difference between PouchDB and CouchDB?