StorageInterface
public protocol StorageInterface : AnyObject
The StorageInterface represents the data store managed (or to be managed) by the DataStack. When added to the DataStack, the StorageInterface serves as the interface for the NSPersistentStore. This may be a database file, an in-memory store, etc.
-
The string identifier for the
NSPersistentStore‘stypeproperty. This is the same string CoreStore will use to create theNSPersistentStorefrom theNSPersistentStoreCoordinator’saddPersistentStoreWithType(...)method.Declaration
Swift
static var storeType: String { get } -
The configuration name in the model file
Declaration
Swift
var configuration: ModelConfiguration { get } -
The options dictionary for the
NSPersistentStoreDeclaration
Swift
var storeOptions: [AnyHashable : Any]? { get }
View on GitHub
StorageInterface Protocol Reference