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

Add a method to clear a store #69

Closed
vid opened this issue Nov 1, 2018 · 2 comments
Closed

Add a method to clear a store #69

vid opened this issue Nov 1, 2018 · 2 comments

Comments

@vid
Copy link

vid commented Nov 1, 2018

There is currently a clearAllData method to clear all data, but there is no way to clear a particular data store without enumerating the existing data.

@deregtd
Copy link
Collaborator

deregtd commented Nov 1, 2018

@vid : There's a clearAllDAta method on the root provider, but that just loops through the stores and calls clearAllData on each of them:

https://github.com/Microsoft/NoSQLProvider/blob/a645dc722b70b93a5f57443c4f864427869bea5f/src/NoSqlProvider.ts#L85

@vid
Copy link
Author

vid commented Nov 2, 2018

Thanks. I guess I was confused by the way it's used in a ReactXP example.
Unrelatedly, you might want to check your use of the word "spurns" in the README, since your implementation is more a matter of appropriateness than contempt.

@vid vid closed this as completed Nov 2, 2018
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