import Cocoa
-extension CoreDataConfiguration {
-
- static let bookmark = CoreDataConfiguration("Bookmark")
-}
-
final class BookmarkDataStore: CoreDataManager {
- static let core = CoreDataCore(.bookmark)
+ static let core = CoreDataCore(CoreDataConfiguration("Bookmark"))
static let `default` = BookmarkDataStore(type: .reader)
import Cocoa
-extension CoreDataConfiguration {
-
- static let local = CoreDataConfiguration("LocalData")
-}
-
final class LocalDataStore: CoreDataManager {
- static let core = CoreDataCore(.local)
+ static let core = CoreDataCore(CoreDataConfiguration("LocalData"))
static let `default` = LocalDataStore(type: .reader)
import Cocoa
-extension CoreDataConfiguration {
-
- static let resourceHistory = CoreDataConfiguration("ResourceHistory")
-}
-
final class ResourceHistoryDataStore: CoreDataManager {
- static let core = CoreDataCore(.resourceHistory)
+ static let core = CoreDataCore(CoreDataConfiguration("ResourceHistory"))
static let `default` = ResourceHistoryDataStore(type: .reader)
import Cocoa
-extension CoreDataConfiguration {
-
- static let kcd = CoreDataConfiguration("KCD", tryRemake: true)
-}
-
final class ServerDataStore: CoreDataManager {
- static let core = CoreDataCore(.kcd)
+ static let core = CoreDataCore(CoreDataConfiguration("KCD", tryRemake: true))
static let `default` = ServerDataStore(type: .reader)
import Cocoa
-extension CoreDataConfiguration {
-
- static let temporary = CoreDataConfiguration("Temporary",
- fileName: ":memory:",
- options: [:],
- type: NSInMemoryStoreType
- )
-}
-
final class TemporaryDataStore: CoreDataManager {
- static let core = CoreDataCore(.temporary)
+ static let core = CoreDataCore(CoreDataConfiguration("Temporary",
+ fileName: ":memory:",
+ options: [:],
+ type: NSInMemoryStoreType))
static let `default` = TemporaryDataStore(type: .reader)