-
Notifications
You must be signed in to change notification settings - Fork 714
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
How to use new location option with pouchdb? #200
Comments
You cannot. We haven't implemented it in PouchDB yet. If you would like to contribute the fix to PouchDB, you are more than welcome to modify the code and submit a pull request. Here is the code that will need to be modified. I would recommend adding an option to the PouchDB constructor, e.g. |
Thanks @tannerlinsley and @nolanlawson! |
In a more general case, it would be nice to configure default values as well. Nice to do this from |
That's a nice pattern; thanks for sharing. :) |
Using the above changes, my app says that it's opening a db, but nothing ever happens after this...
|
What you quote from the trace indicates that for some reason, the plugin attempts to open a database with name of "", which will not work. The plugin should check for and reject (probably with an exception) this case. Please try further to log or otherwise debug the "config" object given to sqlitePlugin.openDatabase. |
False alarm. I found a bug on my end. Thanks for the help on this one guys! |
Happy to hear @tannerlinsley. I have raised #207 to add the XML enhancements whenever I get a chance (or someone else issues a pull request). And thanks to both @nolanlawson and @tannerlinsley for fixing PouchDB to work with the new |
This feature should appear in the next release of PouchDB. Or for those who are in a hurry, here are some prerelease builds: pouchdb.js and pouchdb.min.js. |
Thanks! On Tue, Mar 17, 2015 at 8:05 AM Nolan Lawson [email protected]
|
FYI documented at: http://pouchdb.com/api.html#create_database (Link will be added to README.md when I get a chance.) |
I'm confused how I can tell pouchdb to use the new location parameter to not back up to icloud. Any ideas?
The text was updated successfully, but these errors were encountered: