CSLocalStorage
@objc
public protocol CSLocalStorage : CSStorageInterface
The CSLocalStorage
serves as the Objective-C bridging type for LocalStorage
.
See also
LocalStorage
-
The
NSURL
that points to the store fileDeclaration
Swift
@objc var fileURL: URL { get }
-
An array of
SchemaMappingProvider
s 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
CSDataStack
how to setup the persistent storeDeclaration
Swift
@objc var localStorageOptions: Int { get }
-
Called by the
CSDataStack
to perform actual deletion of the store file from disk. Do not call directly! ThesourceModel
argument is a hint for the existing store’s model version. Implementers can use thesourceModel
to 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