-
Notifications
You must be signed in to change notification settings - Fork 15
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
Change database directory from .DocumentDirectory
to .ApplicationSupportDirectory
#76
Comments
No additional reasoning - all fair points, happy to change this to |
If you want to do a pull request that would be great :) I'm in the middle of something else at the moment. But I can get to it in a few hours or so if not. |
I think the change would warrant a new version though - so if you do a pull request to |
Yeah…changing the
I'll try to send one later this afternoon—but if I don't, I'll get to it eventually. You don't have to rush to do it! |
.DocumentDirectory
vs .ApplicationSupportDirectory
.DocumentDirectory
to .ApplicationSupportDirectory
If the implementation of |
Yeah, that's probably wise. Moving the database file would likely screw up all apps which use the framework. I'll have a think about making a non-breaking change, and possibly support moving existing database files from the documents directory. |
In a few places, you've recommended storing the SQLite database file in
.DocumentDirectory
:pathToDatabase
databaseNamed
What's the rationale behind this recommendation?
I've been placing my databases in
.ApplicationSupportDirectory
with the understanding that the Documents directory is reserved for files which are meaningful, not opaque, to the user.Guidelines on this are not perfectly clear, but include these notes:
Given that, and my recollection of app rejections for placing databases in the Documents directory, I have assumed that opaque datastores like SQLite DBs belong in Application Support, and only text/image and similar files belong in Documents.
Is there additional reasoning behind this recommendation which I may be missing?
The text was updated successfully, but these errors were encountered: