CloudStorageOptions

public struct CloudStorageOptions : OptionSet, ExpressibleByNilLiteral

The CloudStorageOptions provides settings that tells the DataStack how to setup the persistent store for LocalStorage implementers.

  • Tells the DataStack that the store should not be migrated or recreated, and should simply fail on model mismatch

    Declaration

    Swift

    public static let none: CloudStorageOptions
  • Tells the DataStack to delete and recreate the local store from the cloud store on model mismatch, otherwise exceptions will be thrown on failure instead

    Declaration

    Swift

    public static let recreateLocalStoreOnModelMismatch: CloudStorageOptions
  • Tells the DataStack to allow lightweight migration for the store when added synchronously

    Declaration

    Swift

    public static let allowSynchronousLightweightMigration: CloudStorageOptions
  • Declaration

    Swift

    public let rawValue: Int
  • Declaration

    Swift

    public var debugDescription: String { get }