2 // ResourceHistoryDataStore.swift
5 // Created by Hori,Masaki on 2017/01/06.
6 // Copyright © 2017年 Hori,Masaki. All rights reserved.
11 final class ResourceHistoryDataStore: CoreDataManager {
13 static let core = CoreDataCore(CoreDataConfiguration("ResourceHistory"))
15 static let `default` = ResourceHistoryDataStore(type: .reader)
17 class func oneTimeEditor() -> ResourceHistoryDataStore {
19 return ResourceHistoryDataStore(type: .editor)
22 required init(type: CoreDataManagerType) {
24 context = ResourceHistoryDataStore.context(for: type)
29 save(errorHandler: presentOnMainThread)
32 let context: NSManagedObjectContext