magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

Request a different file protection level #1323

Closed dudeinthemirror closed 5 years ago

dudeinthemirror commented 6 years ago

Is there a way to pass an options dictionary to setupCoreDataStackWithAutoMigratingSqliteStoreNamed ? In general, is there a way to request a different file protection level ?

For example:

NSDictionary *storeOptions = @{NSPersistentStoreFileProtectionKey  : NSFileProtectionComplete};
[MagicalRecord setupCoreDataStackWithAutoMigratingSqliteStoreNamed:@"my_db" options: storeOptions];
Coeur commented 5 years ago

Feature is being added today. See #1364.