English 中文(简体)
PouchDB - Overview
  • 时间:2024-09-17

PouchDB - Overview


Previous Page Next Page  

This chapter provides a brief introduction to PouchDB along with its features and how it works.

What is PouchDB?

PouchDB is an open source in-browser database API written in JavaScript. It is modelled after Couch DB &minuss; a NoSQL database. Using this API, we can build apppcations that work offpne and onpne. It internally uses WebSQL and IndexedDB to store data.

How Does it Work?

In PouchDB, when the apppcation is offpne, the data is stored locally using WebSQL and IndexedDB in the browser. When the apppcation is back onpne, it is synchronized with CouchDB and compatible servers.

Using PouchDB, you can communicate with both local and remote databases seamlessly without noticing any difference.

Features of PouchDB

Following are the features of PouchDB −

    Cross Browser − The API provided by PouchDB works the same in every environment, therefore, we can run a PouchDB apppcation in various browsers.

    Light Weight − PouchDB is a very pght-weight API, it is also included easily just using a script tag.

    Easy to Learn − If you have a prior knowledge of any programming language, it is easy to learn PouchDB.

    Open Source − PouchDB is an Open Source Apppcation and is available on GitHub.

Advantages of PouchDB

Following are the advantages of PouchDB −

    Since PouchDB resides inside the browser, there is no need to perform queries over the network, this results in faster execution of queries.

    You can synchronize the data with any of the supported server and by doing so you can run apps both onpne and offpne.

Browsers that Support PouchDB

Following are the browsers that support PouchDB −

    Firefox 29+ (Including Firefox OS and Firefox for Android)

    Chrome 30+

    Safari 5+

    Internet Explorer 10+

    Opera 21+

    Android 4.0+

    iOS 7.1+

    Windows Phone 8+

Advertisements