Ability to specify location of a persistent store file #51

Closed
casademora opened this Issue Jul 24, 2011 · 5 comments

Comments

Projects
None yet
3 participants
Owner

casademora commented Jul 24, 2011

Currently, all stores are placed in the Library folder by default. In some cases, these stores may be user transferable at the least, and perhaps should be stored in the Documents folder when specified. All stores should still go to the Library by default.

casademora was assigned Dec 14, 2012

sbhklr commented Feb 12, 2013

I gave this a shot and implemented it in my MR fork based on the current master branch. Do you want me to make a pull request?

Owner

casademora commented Feb 27, 2013

Just curious as to why you need to disable wal journaling? Also, have a look in the experimental branch. I have some similar store by URL stuff there. Let me know what you thing. I we'll work on getting some of these methods moved into master sometime soon.

sbhklr commented Feb 28, 2013

It's because when WAL is enabled, a separate WAL file is created upon
initialization. For backup purposes my App continuously sends the sqlite
file to a server and relies on the original filename. But when using WAL,
the file that has the original filename won't include the most recent data.

Contributor

tonyarnold commented Dec 9, 2013

2 years later… MagicalRecord 3.0 will support specifying an NSURL file URL or a NSString path when setting up SQLiteMagicalRecordStack. You can see this work in the release/3.0 branch.

tonyarnold closed this Dec 9, 2013

sbhklr commented Dec 9, 2013

Thank you for that xmas present :-)

@neilkimmett neilkimmett added a commit to neilkimmett/MagicalRecord that referenced this issue Jan 20, 2014

@neilkimmett Sebastian Hunkeler + neilkimmett Fix for #51 and #411 77d706e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment