CSLocalStorage
@objc
public protocol CSLocalStorage : CSStorageInterface
The CSLocalStorage serves as the Objective-C bridging type for LocalStorage.
See also
LocalStorage
-
The
NSURLthat points to the store fileDeclaration
Swift
@objc var fileURL: URL { get } -
An array of
SchemaMappingProviders that provides the complete mapping models for custom migrations. This is currently only supported for Swift code.Declaration
Swift
@objc var migrationMappingProviders: [Any] { get } -
Options that tell the
CSDataStackhow to setup the persistent storeDeclaration
Swift
@objc var localStorageOptions: Int { get } -
Called by the
CSDataStackto 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. (SQLite stores for example, can convert WAL journaling mode to DELETE before deleting)Declaration
Swift
@objc func cs_eraseStorageAndWait(metadata: NSDictionary, soureModelHint: NSManagedObjectModel?, error: NSErrorPointer) -> Bool
View on GitHub
CSLocalStorage Protocol Reference