I am trying to make my web application work on offline mode by using pouchDB. but the backend database server i used is PostgreSQL (NoSQL). I couldn't find a way to Sync my PouchDB data to postgreSQL when my app came back to online. Can anyone please give me an idea how to do it
In PouchDB, when the application is offline, the data is stored locally using WebSQL and IndexedDB in the browser. When the application is back online, it is synchronized with CouchDB and compatible servers.
It stores data locally using IndexedDB and WebSQL in the browser. You can also communicate with remote and local databases continuously using PouchDB without noticing any difference. It is available on GitHub and on other open source application.
PouchDB is an open-source, NoSQL, in-line database. It is designed after CouchDB, which is a NoSQL database that powers npm.
Short answer: You can't. It's impossible. Give up. You need CouchDB.
Long answer: You have two options:
See also this answer from another question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With