A description object used to create and load a persistent store.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Core Data
Declaration
class NSPersistentStoreDescription : NSObject
A description object used to create and load a persistent store.
SDKs
Framework
class NSPersistentStoreDescription : NSObject
init(url: URL)
Initializes the receiver with a URL for the store.
var url: URL?
The URL that the store will use for its location.
var configuration: String?
The name of the configuration used by this store.
var timeout: Time Interval
The connection timeout for the associated store.
var type: String
The type of store this description represents.
var is Read Only: Bool
A flag that indicates whether this store will be read-only.
var should Add Store Asynchronously: Bool
A flag that determines whether the store is added asynchronously.
var should Infer Mapping Model Automatically: Bool
A flag indicating whether a mapping model should be created automatically.
var should Migrate Store Automatically: Bool
A flag indicating whether the associated persistent store should be migrated automatically.
func set Option(NSObject?, for Key: String)
Sets an option on the store.
func set Value(NSObject?, for Pragma Named: String)
Allows you to set pragmas for the SQLite store.
var options: [String : NSObject]
A dictionary representation of the options set on the associated persistent store.
var sqlite Pragmas: [String : NSObject]
The SQLite pragmas set for the associated persistent store. (read-only)
var cloud Kit Container Options: NSPersistent Cloud Kit Container Options?
Options that customize how this store description aligns with a CloudKit database.
class NSPersistent Store Coordinator
A coordinator that uses the model to help contexts and persistent stores communicate.
class NSPersistent Store
The abstract base class for all Core Data persistent stores.
class NSPersistent Store Request
Criteria used to retrieve data from or save data to a persistent store.
class NSPersistent Store Result
The abstract base class for results returned from a persistent store coordinator.
class NSPersistent Store Asynchronous Result
A concrete class used to represent the results of an asynchronous request.
class NSSave Changes Request
An encapsulation of a collection of changes to be made by an object store in response to a save operation on a managed object context.
class NSAtomic Store
An abstract superclass that you subclass to create a Core Data atomic store.
class NSAtomic Store Cache Node
A concrete class that you use to represent basic nodes in a Core Data atomic store.
class NSIncremental Store
An abstract superclass defining the API through which Core Data communicates with a store.
class NSIncremental Store Node
A concrete class used to represent basic nodes in a Core Data incremental store.