LocalStorageOptions

public struct LocalStorageOptions : OptionSet, ExpressibleByNilLiteral
extension LocalStorageOptions: CustomDebugStringConvertible, CoreStoreDebugStringConvertible

The LocalStorageOptions 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: LocalStorageOptions
  • Tells the DataStack to delete and recreate the store on model mismatch, otherwise exceptions will be thrown on failure instead

    Declaration

    Swift

    public static let recreateStoreOnModelMismatch: LocalStorageOptions
  • Tells the DataStack to prevent progressive migrations for the store

    Declaration

    Swift

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

    Declaration

    Swift

    public static let allowSynchronousLightweightMigration: LocalStorageOptions

OptionSetType

RawRepresentable

  • Declaration

    Swift

    public let rawValue: Int

ExpressibleByNilLiteral

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }