2 // HMTemporaryDataStore.m
5 // Created by Hori,Masaki on 2014/05/20.
6 // Copyright (c) 2014年 Hori,Masaki. All rights reserved.
9 #import "HMTemporaryDataStore.h"
11 @implementation HMTemporaryDataStore
14 static dispatch_once_t onceToken;
15 dispatch_once(&onceToken, ^{
16 [self defaultManager];
20 - (NSString *)modelName
24 - (NSString *)storeFileName
28 - (NSString *)storeType
30 return NSInMemoryStoreType;
32 - (NSDictionary *)storeOptions
34 // NSDictionary *options = @{
35 //#if COREDATA_STORE_TYPE == 0
36 // NSSQLitePragmasOption : @{@"journal_mode" : @"MEMORY"},
38 // NSMigratePersistentStoresAutomaticallyOption : @YES,
39 // NSInferMappingModelAutomaticallyOption : @YES
44 - (BOOL)deleteAndRetry