CloudStorage
public protocol CloudStorage : StorageInterface
The CloudStorage represents StorageInterfaces that are synchronized from a cloud-based store.
-
The
NSURLthat points to the store fileDeclaration
Swift
var cacheFileURL: URL { get } -
Options that tell the
DataStackhow to setup the persistent storeDeclaration
Swift
var cloudStorageOptions: CloudStorageOptions { get } -
The options dictionary for the specified
CloudStorageOptionsDeclaration
Swift
func dictionary(forOptions options: CloudStorageOptions) -> [AnyHashable : Any]? -
Called by the
DataStackto perform actual deletion of the store file from disk. Do not call directly! ThesourceModelargument is a hint for the existing store’s model version. Implementers can use thesourceModelto perform necessary store operations. (Cloud stores for example, can set the NSPersistentStoreRemoveUbiquitousMetadataOption option before deleting)Declaration
Swift
func cs_eraseStorageAndWait(soureModel: NSManagedObjectModel) throws
View on GitHub
CloudStorage Protocol Reference