Class

NSPersistentStoreDescription

A description object used to create and load a persistent store.

Declaration

@interface NSPersistentStoreDescription : NSObject

Topics

Creating a Persistent Store Description

- initWithURL:

Initializes the receiver with a URL for the store.

+ persistentStoreDescriptionWithURL:

Initializes and returns a persistent store description with the given URL.

Configuring a Persistent Store Description

URL

The URL that the store will use for its location.

configuration

The name of the configuration used by this store.

timeout

The connection timeout for the associated store.

type

The type of store this description represents.

readOnly

A flag that indicates whether this store will be read-only.

shouldAddStoreAsynchronously

A flag that determines whether the store is added asynchronously.

shouldInferMappingModelAutomatically

A flag indicating whether a mapping model should be created automatically.

shouldMigrateStoreAutomatically

A flag indicating whether the associated persistent store should be migrated automatically.

- setOption:forKey:

Sets an option on the store.

- setValue:forPragmaNamed:

Allows you to set pragmas for the SQLite store.

Accessing the Configuration Options

options

A dictionary representation of the options set on the associated persistent store.

sqlitePragmas

The SQLite pragmas set for the associated persistent store. (read-only)

Syncing to CloudKit

cloudKitContainerOptions

Options that customize how this store description aligns with a CloudKit database.

Relationships

Inherits From

Conforms To

See Also

Store Coordination

NSPersistentStoreCoordinator

A coordinator that uses the model to help contexts and persistent stores communicate.

NSPersistentStore

The abstract base class for all Core Data persistent stores.

NSPersistentStoreRequest

Criteria used to retrieve data from or save data to a persistent store.

NSPersistentStoreResult

The abstract base class for results returned from a persistent store coordinator.

NSPersistentStoreAsynchronousResult

A concrete class used to represent the results of an asynchronous request.

NSSaveChangesRequest

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.

NSAtomicStore

An abstract superclass that you subclass to create a Core Data atomic store.

NSAtomicStoreCacheNode

A concrete class that you use to represent basic nodes in a Core Data atomic store.

NSIncrementalStore

An abstract superclass defining the API through which Core Data communicates with a store.

NSIncrementalStoreNode

A concrete class used to represent basic nodes in a Core Data incremental store.