Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PouchDB #77

Open
simonexmachina opened this issue Sep 23, 2013 · 9 comments
Open

PouchDB #77

simonexmachina opened this issue Sep 23, 2013 · 9 comments

Comments

@simonexmachina
Copy link
Contributor

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).

@OpakAlex
Copy link
Contributor

check how works http://cordova.apache.org/#about with PouchDB

@simonexmachina
Copy link
Contributor Author

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.

@simonexmachina
Copy link
Contributor Author

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.

@Zatvobor
Copy link
Owner

Interesting request. We'll think about possible/further steps.

@Zatvobor
Copy link
Owner

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

@simonexmachina
Copy link
Contributor Author

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.

@Zatvobor
Copy link
Owner

Sure. We've been using the CouchDB for many different projects. Feel free to ask for help. Anyway just let me know.

@simonexmachina
Copy link
Contributor Author

Somebody's already done some work on making PouchDB more Ember-like here

@OpakAlex
Copy link
Contributor

Yes, but it doesn't use ember-data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants