Instance Method

setValue:forPragmaNamed:

Allows you to set pragmas for the SQLite store.

Declaration

- (void)setValue:(NSObject *)value forPragmaNamed:(NSString *)name;

Parameters

value

The value of the pragma to be set.

name

The name of the pragma to be set.

Discussion

Pragma options are for SQLite stores only. All pragma values must be specified as NSStringobjects. The fullfsync and synchronous pragmas control the tradeoff between write performance (write to disk speed and cache utilization) and durability (data loss/corruption sensitivity to power interruption). For more information on pragma settings, see http://sqlite.org/pragma.html.

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.

- setOption:forKey:

Sets an option on the store.