SwiftstructContacts
BackupRestoreMigrator
struct Contacts.BackupRestoreMigrator
Members 12
- field
let avatarEntityName: String - field
let container: NSPersistentContainer+0x0 - field
let externalDetailsEntityName: String - field
let modelName: String - field
let posterEntityName: String - field
let recoveryAttemptCountMetadataKey: String - field
let recoveryLimit: Int - field
let tempURL: Foundation.URL - func
attemptMigration(direction: Contacts.BackupRestoreMigrator.MigrationDirection) throws -> Bool - func
getRecoveryAttemptCount() throws -> Int - func
setRecoveryAttemptCount(Int) throws -> () - init
init(container: NSPersistentContainer, tempURL: Foundation.URL, modelName: String, recoveryLimit: Int) -> Contacts.BackupRestoreMigrator
Header
struct BackupRestoreMigrator { enum MigrationDirection { case backup case restore var description: Swift.String { get } } // Local type in a function or closure the binary does not name struct UnpairedAvatarRelationship { let avatarID: __C.NSManagedObjectID let externalDetailsID: __C.NSManagedObjectID? } // Local type in a function or closure the binary does not name struct PosterRelationship { let posterID: __C.NSManagedObjectID let pairedImageID: __C.NSManagedObjectID? let externalDetailsID: __C.NSManagedObjectID? } let container: __C.NSPersistentContainer let tempURL: Foundation.URL let modelName: Swift.String let recoveryLimit: Swift.Int let recoveryAttemptCountMetadataKey: Swift.String let posterEntityName: Swift.String let avatarEntityName: Swift.String let externalDetailsEntityName: Swift.String init(container: __C.NSPersistentContainer, tempURL: Foundation.URL, modelName: Swift.String, recoveryLimit: Swift.Int) func attemptMigration(direction: Contacts.BackupRestoreMigrator.MigrationDirection) throws -> Swift.Bool func getRecoveryAttemptCount() throws -> Swift.Int func setRecoveryAttemptCount(_: Swift.Int) throws }