Open simonexmachina opened 11 years ago
check how works http://cordova.apache.org/#about with PouchDB
From the PouchDB website it says "you can use PouchDB within Apache Cordova":
PouchDB is one of multiple projects that implement the CouchDB protocol and these can all be used to sync the same set of data. For desktop applications you may want to look into embedding CouchDB (or rcouch), for mobile applications you can use PouchDB within Apache Cordova or you can look at Couchbase lite for iOS and Android.
PouchDB can use a number of adapters that allow it to use different underlying browser storage mechanisms, so I'd say in this case it's using Cordova's SQLite.
Interestingly PouchDB is also a CouchDB client so we should be able to use the PouchDB API as the abstraction layer for switching between a remote CouchDB server or local storage database.
Interesting request. We'll think about possible/further steps.
I've just checked the PouchDB internals. In fact, we can use the PouchDB as a communication layer for CouchDB and have ability to work offline as a bonus...
Would you interested to contribute? Let's discuss this in details
Yep definitely interested, but not sure at this stage whether the project I'm working on will use a CouchDB-based solution or another persistence technology. Should know next week, so I'll let you know.
Sure. We've been using the CouchDB for many different projects. Feel free to ask for help. Anyway just let me know.
Somebody's already done some work on making PouchDB more Ember-like here
Yes, but it doesn't use ember-data.
We're interested in using PouchDB to provide offline persistence in a way that will sync up to the server when the client comes online. At this early stage I think we'd need an abstraction layer between Ember Data and the underlying CouchDB (via HTTP) or PouchDB (via its JavaScript API).