Differences between PouchDB and CouchBase Lite + LiteGap
After some research and being a relatively new topic, i thought it would be interesting to share my experiences replying my own question:
What is the difference between using PouchDB and using CouchBase Lite with the new LiteGap plugin?
PouchDB can create a local database (
Couchbase Lite creates a iOS/Android database on the device, accesible by default on
Both solutions are available to use on a Phonegap project.
Are they two different solutions to the same problem?
In short, no.
PouchDB is cross-platform so you can use it in a web project and also in a hybrid app. Also it provides a useful API to interact directly with a local db or external CouchDB. Being based on websql/IndexedDB technologies, you have storage limitations that keep asking the user to allow more local storage space for your web/app.
Couchbase Lite is a native iOS/Android solution that sets a Couchbase database in the device localhost. Together with the LiteGap plugin, you can use it in a Phonegap project.
Can the PouchDB API be used to interact with a local CouchBase Lite database?
Yes, but some functionality was not working as expected in my tests.
Now, with Pouch you can
I hope this helps to someone taking decisions on which technologies use when creating a offline/online syncable hybrid app.