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 mismatchDeclaration
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 insteadDeclaration
Swift
public static let recreateStoreOnModelMismatch: LocalStorageOptions
-
Tells the
DataStack
to prevent progressive migrations for the storeDeclaration
Swift
public static let preventProgressiveMigration: LocalStorageOptions
-
Tells the
DataStack
to 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 }