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

Multi-Directory support #79

Merged
merged 1 commit into from
Aug 29, 2017
Merged

Conversation

Yoann-Pearson
Copy link
Contributor

Try number 2. I reapplied #51 on a recent fork of the master. Then applied requested modifications, added additional tests and did slight modifications in the functionality of the Getall and Keys functions to correctly support a different directory supplied as parameter.

Hopefully this time I can get it right!

…most recent fork of master.

- Added additional tests
- Slight modifications in the functionality of the Getall and Keys functions to correctly support a different directory supplied as parameter
@jviotti
Copy link
Member

jviotti commented Aug 29, 2017

Sorry for taking so much time to get back to this. Thanks a lot for the PR, I'll update the docs and release a new version soon.

@jviotti jviotti merged commit 9c1c714 into electron-userland:master Aug 29, 2017
@Yoann-Pearson
Copy link
Contributor Author

No problem! I noticed today that I missed 1 function (set with directory). I will do a PR later today with this, so you can have a complete multi-directory support for the new version.

@jviotti
Copy link
Member

jviotti commented Aug 30, 2017

I think it makes more sense to have only the setter specify a directory. If you need to set settings elsewhere, you can change the data directory rather than passing a custom one on each function.

@Yoann-Pearson
Copy link
Contributor Author

Yoann-Pearson commented Aug 30, 2017

I suppose it depends on the usage. I could see a situation where you would want to write in 2 different directories. Since one call (writing) is asynch, but setting the directory is not, this could lead to unexpected results.

@jviotti
Copy link
Member

jviotti commented Sep 4, 2017

I see, makes sense. Lets add an optional directory argument to all functions as a separate PR.

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

Successfully merging this pull request may close these issues.

2 participants