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
DataStackthat the store should not be migrated or recreated, and should simply fail on model mismatchDeclaration
Swift
public static let none: LocalStorageOptions -
Tells the
DataStackto delete and recreate the store on model mismatch, otherwise exceptions will be thrown on failure insteadDeclaration
Swift
public static let recreateStoreOnModelMismatch: LocalStorageOptions -
Tells the
DataStackto prevent progressive migrations for the storeDeclaration
Swift
public static let preventProgressiveMigration: LocalStorageOptions -
Tells the
DataStackto allow lightweight migration for the store when added synchronouslyDeclaration
Swift
public static let allowSynchronousLightweightMigration: LocalStorageOptions
-
Declaration
Swift
public init(rawValue: Int)
-
Declaration
Swift
public let rawValue: Int
-
Declaration
Swift
public init(nilLiteral: ())
-
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
LocalStorageOptions Structure Reference