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 an NSManagedObjectModel.

    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

DynamicSchema

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }