UnsafeDataModelSchema
public final class UnsafeDataModelSchema : DynamicSchema
extension UnsafeDataModelSchema: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
The UnsafeDataModelSchema
describes models loaded directly from an existing NSManagedObjectModel
. It is not advisable to continue using this model as its metadata are not available to CoreStore.
-
Initializes a
UnsafeDataModelSchema
from anNSManagedObjectModel
.CoreStoreDefaults.dataStack = DataStack( UnsafeDataModelSchema(modelName: "MyAppV1", model: model) )
Declaration
Swift
public required init(modelName: ModelVersion, model: NSManagedObjectModel)
Parameters
modelName
the model version, typically the file name of an *.xcdatamodeld file (without the file extension)
model
the
NSManagedObjectModel
-
Declaration
Swift
public let modelVersion: ModelVersion
-
Declaration
Swift
public func rawModel() -> NSManagedObjectModel
-
Declaration
Swift
public var debugDescription: String { get }