InferredSchemaMappingProvider

public final class InferredSchemaMappingProvider : Hashable, SchemaMappingProvider

A SchemaMappingProvider that tries to infer model migration between two DynamicSchema versions by searching all xcmappingmodels from Bundle.allBundles or by relying on lightweight migration if possible. Throws an error if lightweight migration is impossible for the two DynamicSchema. This mapping is automatically used as a fallback mapping provider, even if no mapping providers are explicitly declared in the StorageInterface.

  • Declaration

    Swift

    public static func == (lhs: InferredSchemaMappingProvider, rhs: InferredSchemaMappingProvider) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)