Instance Method

setOption:forKey:

Sets an option on the store.

Declaration

- (void)setOption:(NSObject *)option forKey:(NSString *)key;

Parameters

option

The value to be set for an option on the store.

key

The key of the value to be set for an option on the store.

Discussion

If a value was previously set for the given option, that value is replaced with the given value. Note that the keys are case-sensitive. For a list of the available options, see NSPersistentStoreCoordinator.

See Also

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.

- setValue:forPragmaNamed:

Allows you to set pragmas for the SQLite store.