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

Switch between CouchDB and PouchDB at runtime? #98

Closed
cquillen2003 opened this issue Dec 15, 2015 · 2 comments
Closed

Switch between CouchDB and PouchDB at runtime? #98

cquillen2003 opened this issue Dec 15, 2015 · 2 comments

Comments

@cquillen2003
Copy link

Is switching between CouchDB and PouchDB at runtime possible with this adapter? I'd like to prompt the user and get permission before pulling their data into the browser.

If not, I might try to create another community CouchDB and/or PouchDB adapter, so any basic advice on how to structure this would be greatly appreciated: one adapter or two and which adapter/serializer to start with (extend)?

@rsutphin
Copy link
Collaborator

PR #89 has a patch which enables switching between PouchDB instances within the adapter. This would allow switching from a local database to a remote one (i.e., one pointing at a CouchDB database). It hasn't been merged yet, but you could look at it and see if it does what you need. Feedback would be appreciated.

@cquillen2003
Copy link
Author

Just read through PR #89. I think this will work. Thanks!

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

2 participants