CoreDataController
public class CoreDataController
Holds the NSPersistentContainer for accessing core data entities of the ErxTask module
-
Initialize a CoreDataController
Throws
CoreDataController.Errorwhen initialization failsDeclaration
Swift
public required init( url: URL, excludeFromBackup: Bool = true, fileProtection level: FileProtectionType, fileManager: FileManager = FileManager.default ) throwsParameters
urlthe database location
excludeFromBackuptrue, the database file(s) is/are excluded from backup
levelthe File protection level
fileManagerFileManager for the file operations (Default: FileManager.default)
-
Destroy a persistent store.
Throws
If the store cannot be destroyed.Declaration
Swift
public func destroyPersistentStore(at storeURL: URL) throwsParameters
storeURLA
URLfor the persistent store to be destroyed. -
Declaration
Swift
public enum Error : Swift.Error, LocalizedError, Equatable
View on GitHub
CoreDataController Class Reference