Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode MagicalRecord避免生成WAL文件_Xcode_Sqlite_Magicalrecord_Ios7.1 - Fatal编程技术网

Xcode MagicalRecord避免生成WAL文件

Xcode MagicalRecord避免生成WAL文件,xcode,sqlite,magicalrecord,ios7.1,Xcode,Sqlite,Magicalrecord,Ios7.1,我正在用Magic Record构建我的第一个应用程序,我想知道是否有办法避免为我的模型生成三个文件(dbname、dbname shm、dbname wal),并继续生成一个文件(dbname.sqlite) 我不知道在MR文件中的何处设置此字符串: @{NSSQLitePragmasOption: @{@"journal_mode": @"delete"}} if (![coordinator addPersistentStoreWithType:NSSQLiteStoreType conf

我正在用Magic Record构建我的第一个应用程序,我想知道是否有办法避免为我的模型生成三个文件(dbname、dbname shm、dbname wal),并继续生成一个文件(dbname.sqlite)

我不知道在MR文件中的何处设置此字符串:

@{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];
    return nil;
}

我查看了NSPersistentStoreCoordinator+MagicalRecord.m,但没有结果。

如果所有其他操作都失败,您可以使用普通的旧核心数据方式完成所有操作,并在持久存储协调器上使用默认的添加持久存储方法

如果我无法避免使用这三个文件,我可以使用什么来浏览数据库并检查其中的内容?Base.app非常方便,我每天都使用它来检查sqlite核心数据存储