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
UnsafeDataModelSchemafrom anNSManagedObjectModel.CoreStoreDefaults.dataStack = DataStack( UnsafeDataModelSchema(modelName: "MyAppV1", model: model) )Declaration
Swift
public required init(modelName: ModelVersion, model: NSManagedObjectModel)Parameters
modelNamethe model version, typically the file name of an *.xcdatamodeld file (without the file extension)
modelthe
NSManagedObjectModel
-
Declaration
Swift
public let modelVersion: ModelVersion -
Declaration
Swift
public func rawModel() -> NSManagedObjectModel
-
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
UnsafeDataModelSchema Class Reference