PouchDB is written in JavaScript. It is an in-line database. It is also distinguished as an open-source and NoSQL database. Being modelled after CouchDB, it is also known as a JavaScript implementation of CouchDB. Browsers supporting PouchDB are Firefox 29+ (both OS and for Android), Chrome 30+, Safari 5+, Internet Explorer 10+, Opera 21+, Android 4.0+, iOS 7.1+ and Windows Phone 8+.
Features:
Cross-Browser:
- Works the same in every environment.
- Can run an application in various browsers, including Chrome, Firefox, Opera, Safari, IE and Node.js.
Lightweight:
- Lightweight API.
- Can include easily by using a script tag.
Easy to learn:
- Very easy to learn with some programming skills.
Opensource:
- Available on Github.
Advantages:
- Extremely fast.
- Resides inside the browser.
- No need to perform queries over the network.
- PouchDB uses WebSQL and IndexDB to store data and can save data locally while being offline.
- The stored data is synchronized with CouchDB and compatible servers when it is back online, thus the applications built can work both offline and online.
- The user thus can effortlessly communicate with both local and remote databases.
PouchDB tutorial
- Install PouchDB
- PouchDB Create Database
- Database Info in PouchDB
- Delete Database in PouchDB
- Create Document in PouchDB
- Read Document in PouchDB
- Update Document in PouchDB
- Delete Document in PouchDB
- Create Batch in PouchDB
- Read Batch in PouchDB
- Update Batch in PouchDB
- Delete Batch in PouchDB
- Add Attachment in PouchDB
- Retrieve Attachment in PouchDB
- Delete Attachment in PouchDB
- PouchDB Replication