MigrationProgress
public enum MigrationProgress<T> where T : LocalStorage
A MigrationProgress contains info on a LocalStorage‘s setup progress.
See also
DataStack.reactive.addStorage(_:)See also
DataStack.async.addStorage(_:)-
The
LocalStorageis currently being migratedDeclaration
Swift
case migrating(storage: T, progressObject: Progress) -
The
LocalStoragehas been added to theDataStackand is ready for reading and writingDeclaration
Swift
case finished(storage: T, migrationRequired: Bool) -
The fraction of the overall work completed by the migration. Returns a value between 0.0 and 1.0, inclusive.
Declaration
Swift
public var fractionCompleted: Double { get } -
Returns
trueif the storage was successfully added to the stack,falseotherwise.Declaration
Swift
public var isCompleted: Bool { get }
View on GitHub
MigrationProgress Enumeration Reference