CloudStorage

public protocol CloudStorage : StorageInterface

The CloudStorage represents StorageInterfaces that are synchronized from a cloud-based store.

  • The NSURL that points to the store file

    Declaration

    Swift

    var cacheFileURL: URL { get }
  • Options that tell the DataStack how to setup the persistent store

    Declaration

    Swift

    var cloudStorageOptions: CloudStorageOptions { get }
  • The options dictionary for the specified CloudStorageOptions

    Declaration

    Swift

    func dictionary(forOptions options: CloudStorageOptions) -> [AnyHashable : Any]?
  • Called by the DataStack to perform actual deletion of the store file from disk. Do not call directly! The sourceModel argument is a hint for the existing store’s model version. Implementers can use the sourceModel to perform necessary store operations. (Cloud stores for example, can set the NSPersistentStoreRemoveUbiquitousMetadataOption option before deleting)

    Declaration

    Swift

    func cs_eraseStorageAndWait(soureModel: NSManagedObjectModel) throws