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
‘stype
property. This is the same string CoreStore will use to create theNSPersistentStore
from 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
NSPersistentStore
Declaration
Swift
var storeOptions: [AnyHashable : Any]? { get }