sqlite - Xcode MagicalRecord avoid WAL files generation -
i'm building first app magical record , i'm wondering if there way avoid generation of 3 files (dbname, dbname-shm, dbname-wal) model , proceed generation of single file (dbname.sqlite).
i don't know set string in mr files:
@{nssqlitepragmasoption: @{@"journal_mode": @"delete"}} if (![coordinator addpersistentstorewithtype:nssqlitestoretype configuration:nil url:url options:@{nssqlitepragmasoption: @{@"journal_mode": @"delete"}, nsmigratepersistentstoresautomaticallyoption:@yes, nsinfermappingmodelautomaticallyoption:@yes} error:&error]) { [[nsapplication sharedapplication] presenterror:error]; homecoming nil; }
i looked nspersistentstorecoordinator+magicalrecord.m no results.
if else fails, can plain old core info way , utilize default add together persistent store method on persistent store coordinator.
xcode sqlite magicalrecord ios7.1
No comments:
Post a Comment